mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: don't create new like notifications for deleted topics
This commit is contained in:
parent
f108bc3715
commit
ec65ae76b9
@ -13,7 +13,7 @@ class PostActionNotifier
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.refresh_like_notification(post, read)
|
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])
|
usernames = post.post_actions.where(post_action_type_id: PostActionType.types[:like])
|
||||||
.joins(:user)
|
.joins(:user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user