FIX: Silencing / Suspending a user should not send a hidden message

This commit is contained in:
Robin Ward 2018-03-14 14:39:20 -04:00
parent b83ba97675
commit d31dfe0e84
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Admin::FlagsController < Admin::AdminController
post_action_type = PostAction.post_action_type_for_post(post.id)
keep_post = params[:action_on_post] == "keep"
keep_post = ['silenced', 'suspended', 'keep'].include?(params[:action_on_post])
delete_post = params[:action_on_post] == "delete"
restore_post = params[:action_on_post] == "restore"