Always denotify when deleting reactions

This commit is contained in:
Karina Kwiatek 2022-07-06 20:17:37 +02:00 committed by Karina Kwiatek
parent ced0b579dd
commit c0dbc7d501
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Appendable::Reaction < Appendable
end
before_destroy do
Notification.denotify parent.user, self unless parent.user == user
Notification.denotify parent.user, self
user.decrement! :smiled_count
parent.decrement! :smile_count
end