Exempt deletions from dupe flag checking
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user