Files
fizzy/app/models/notifier/mention.rb
T
Jorge Manrubia 2eae58725a Remove notifications' resource relationship
Is confusing since "source" already captures the origin of the notifications. It's
needed to interpret things at rendering time, so we can query things as needed there.
2025-04-23 13:52:47 +02:00

17 lines
242 B
Ruby

class Notifier::Mention < Notifier
alias mention source
private
def recipients
if mention.self_mention?
[]
else
[ mention.mentionee ]
end
end
def creator
mention.mentioner
end
end