mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't create new like notifications for deleted topics
This commit is contained in:
@@ -13,7 +13,7 @@ class PostActionNotifier
|
||||
end
|
||||
|
||||
def self.refresh_like_notification(post, read)
|
||||
return unless post && post.user_id
|
||||
return unless post && post.user_id && post.topic
|
||||
|
||||
usernames = post.post_actions.where(post_action_type_id: PostActionType.types[:like])
|
||||
.joins(:user)
|
||||
|
||||
Reference in New Issue
Block a user