From c0dbc7d5016246aafa3afa025fcb1872225bda05 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 6 Jul 2022 20:17:37 +0200 Subject: [PATCH] Always denotify when deleting reactions --- app/models/appendable/reaction.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/appendable/reaction.rb b/app/models/appendable/reaction.rb index df498b18..80916d5e 100644 --- a/app/models/appendable/reaction.rb +++ b/app/models/appendable/reaction.rb @@ -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