FIX: Toggling a post's wiki status should not skip revision.

This commit is contained in:
Guo Xiang Tan
2017-01-25 13:34:55 +08:00
parent efc21366ae
commit 781d83a46f
2 changed files with 8 additions and 5 deletions

View File

@@ -394,7 +394,7 @@ class PostsController < ApplicationController
post = find_post_from_params
guardian.ensure_can_wiki!(post)
post.revise(current_user, { wiki: params[:wiki] }, { skip_revision: true })
post.revise(current_user, { wiki: params[:wiki] })
render nothing: true
end