Fix searching already-known converted activities by URL (#17814)

Fixes #17813
lolsob-rspec
Claire 2022-03-17 00:46:49 +01:00 committed by GitHub
parent e248509de9
commit cf4af2faba
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ class ActivityPub::Activity::Update < ActivityPub::Activity
update_account
elsif equals_or_includes_any?(@object['type'], %w(Note Question))
update_status
elsif converted_object_type?
Status.find_by(uri: object_uri, account_id: @account.id)
end
end