Set notification type for reactions based on what the reaction is attached to

This commit is contained in:
Karina Kwiatek 2022-07-21 16:30:43 +02:00 committed by Karina Kwiatek
parent 0992d44aef
commit 691f72d0ce
1 changed files with 1 additions and 0 deletions

View File

@ -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