Skip to content
Snippets Groups Projects
Unverified Commit 939a4739 authored by Takeshi Umeda's avatar Takeshi Umeda Committed by GitHub
Browse files

Fix duplicate notification and delivery of mentions (#14378)

parent d5d856f1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment