2eae58725a
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.
17 lines
242 B
Ruby
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
|