mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't send PM if flagged post is deleted but flags were deferred or cleared
This commit is contained in:
@@ -196,7 +196,7 @@ class PostDestroyer
|
||||
end
|
||||
|
||||
def agree_with_flags
|
||||
if @post.is_flagged? && @user.id > 0 && @user.staff?
|
||||
if @post.has_active_flag? && @user.id > 0 && @user.staff?
|
||||
Jobs.enqueue(
|
||||
:send_system_message,
|
||||
user_id: @post.user.id,
|
||||
|
||||
Reference in New Issue
Block a user