Fix duplicate notification and delivery of mentions (#14378)

th-downstream
Takeshi Umeda 4 years ago committed by GitHub
parent e98979b643
commit 652f872bf1

@ -36,7 +36,8 @@ class ProcessMentionsService < BaseService
next match if mention_undeliverable?(mentioned_account) || mentioned_account&.suspended?
mentions << mentioned_account.mentions.where(status: status).first_or_create(status: status)
mention = mentioned_account.mentions.new(status: status)
mentions << mention if mention.save
"@#{mentioned_account.acct}"
end

Loading…
Cancel
Save