Whoops! Set app.state.mode to edit on a successful publish of a new post