mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: Enhance post action handler events (#23027)
This commit is contained in:
@ -279,9 +279,9 @@ class PostActionCreator
|
||||
if post_action
|
||||
case @post_action_type_id
|
||||
when *PostActionType.notify_flag_type_ids
|
||||
DiscourseEvent.trigger(:flag_created, post_action)
|
||||
DiscourseEvent.trigger(:flag_created, post_action, self)
|
||||
when PostActionType.types[:like]
|
||||
DiscourseEvent.trigger(:like_created, post_action)
|
||||
DiscourseEvent.trigger(:like_created, post_action, self)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user