Rename mentions' container => source

This commit is contained in:
Jorge Manrubia
2025-04-23 13:41:34 +02:00
parent 7c0aff0680
commit 696732a90a
8 changed files with 32 additions and 39 deletions
+6 -4
View File
@@ -1,18 +1,20 @@
class Notifier::Mention < Notifier
alias mention source
private
def resource
source.container
mention.source
end
def recipients
if source.self_mention?
if mention.self_mention?
[]
else
[ source.mentionee ]
[ mention.mentionee ]
end
end
def creator
source.mentioner
mention.mentioner
end
end