diff --git a/app/models/notifier/event.rb b/app/models/notifier/event.rb index a98835f5b..fb32d4178 100644 --- a/app/models/notifier/event.rb +++ b/app/models/notifier/event.rb @@ -6,24 +6,24 @@ class Notifier::Event < Notifier def recipients case source.action when "assigned" - source.assignees.excluding(card.collection.access_only_users) + source.assignees.excluding(card.collection.access_only_users) when "published" - watchers_and_subscribers(include_only_watching: true).without(creator, *mentionees) + watchers_and_subscribers(include_only_watching: true).without(creator, *mentionees) when "commented" - watchers_and_subscribers.without(creator, *mentionees) + watchers_and_subscribers.without(creator, *mentionees) else - watchers_and_subscribers.without(creator) + watchers_and_subscribers.without(creator) end end def mentionees case source.action when "published" - source.card.mentionees + source.card.mentionees when "commented" - source.comment.mentionees + source.comment.mentionees else - [] + [] end end end