Browse Source

Fix duplicate notification and delivery of mentions (#14378)

master
Takeshi Umeda 1 year ago
committed by GitHub
parent
commit
939a47393c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/services/process_mentions_service.rb

+ 2
- 1
app/services/process_mentions_service.rb View File

@ -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