Exempt deletions from dupe flag checking

This commit is contained in:
Toks
2014-10-31 20:01:42 -04:00
parent e6c4cd6c6d
commit 095d02414c
4 changed files with 13 additions and 5 deletions

View File

@@ -12,7 +12,7 @@ module Moderator
def delete
@post = ::Post.find(params[:id])
if params[:commit] == "Delete"
@post.flag!(params[:reason])
@post.flag!(params[:reason], :is_deletion => true)
@post.delete!(:reason => params[:reason], :move_favorites => params[:move_favorites].present?)
end
redirect_to(post_path(@post))