From 691f72d0ce78185fdf5b912099873326bd6af2e5 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Thu, 21 Jul 2022 16:30:43 +0200 Subject: [PATCH] Set notification type for reactions based on what the reaction is attached to --- app/models/appendable/reaction.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/appendable/reaction.rb b/app/models/appendable/reaction.rb index 1d99de49..7e70141a 100644 --- a/app/models/appendable/reaction.rb +++ b/app/models/appendable/reaction.rb @@ -16,6 +16,7 @@ class Appendable::Reaction < Appendable # rubocop:enable Rails/SkipsModelValidations def notification_type(*_args) + Notification::CommentSmiled if parent.instance_of?(Comment) Notification::Smiled end end