Last modified: 2014-07-02 23:54:19 UTC
While testing action=close-open-topic I returned to an old URL workflow=<someTopic_UUID>&action=close-open-topic&flow_moderationState=close when someTopic was already closed. Even though I'm directing it to close, the form's button is [Reopen topic] and the form's action is flow_moderationState=restore. Likewise if you do the inverse: if you try to reopen a topic that's already open, Flow just closes it. flow_moderationState is ignored. I think at the API level Flow detects and warn "You can not close a moderated post" (flow-error-close-moderated-post). At the URL level it should work similarly: if you tell Flow to close a closed topic or restore one that's open, Flow shouldn't do the opposite of what you request, it should warn. I think that means adding a message for flow-error-restore-open-post.
Added to backlog: https://trello.com/c/xMdQoW7q