mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Notify flaggers when flagged post is edited by author
This commit is contained in:
@@ -109,4 +109,17 @@ class PostActionNotifier
|
||||
)
|
||||
end
|
||||
|
||||
def self.after_post_unhide(post, flaggers)
|
||||
return if @disabled || post.last_editor.blank? || flaggers.blank?
|
||||
|
||||
flaggers.each do |flagger|
|
||||
alerter.create_notification(
|
||||
flagger,
|
||||
Notification.types[:edited],
|
||||
post,
|
||||
display_username: post.last_editor.username,
|
||||
acting_user_id: post.last_editor.id
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user