Fix processing of mentions for post edits with an existing corresponding silent mention (#33227)
This commit is contained in:
parent
da279df8ae
commit
bcb3b627b9
5 changed files with 33 additions and 21 deletions
|
@ -16,7 +16,7 @@ class MentionResolveWorker
|
|||
|
||||
return if account.nil?
|
||||
|
||||
status.mentions.create!(account: account, silent: false)
|
||||
status.mentions.upsert({ account_id: account.id, silent: false }, unique_by: %w(status_id account_id))
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
# Do nothing
|
||||
rescue Mastodon::UnexpectedResponseError => e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue