Always denotify when deleting reactions
This commit is contained in:
parent
ced0b579dd
commit
c0dbc7d501
|
@ -9,7 +9,7 @@ class Appendable::Reaction < Appendable
|
||||||
end
|
end
|
||||||
|
|
||||||
before_destroy do
|
before_destroy do
|
||||||
Notification.denotify parent.user, self unless parent.user == user
|
Notification.denotify parent.user, self
|
||||||
user.decrement! :smiled_count
|
user.decrement! :smiled_count
|
||||||
parent.decrement! :smile_count
|
parent.decrement! :smile_count
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue