New event when a flag is handled

This commit is contained in:
Robin Ward 2018-02-26 18:51:36 -05:00
parent 10139692b2
commit c7a37f391a
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,7 @@ SQL
end
DiscourseEvent.trigger(:confirmed_spam_post, post) if trigger_spam
DiscourseEvent.trigger(:flag_reviewed, post)
update_flagged_posts_count
end
@ -186,6 +187,7 @@ SQL
end
Post.with_deleted.where(id: post.id).update_all(cached)
DiscourseEvent.trigger(:flag_reviewed, post)
update_flagged_posts_count
end
@ -203,6 +205,7 @@ SQL
action.add_moderator_post_if_needed(moderator, :deferred, delete_post)
end
DiscourseEvent.trigger(:flag_reviewed, post)
update_flagged_posts_count
end