mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Set notification type for reactions based on what the reaction is attached to
This commit is contained in:
parent
0992d44aef
commit
691f72d0ce
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue