Set notification type for reactions based on what the reaction is attached to
This commit is contained in:
parent
0992d44aef
commit
691f72d0ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue