2
0

Add support for Update of converted object types (#36322)

This commit is contained in:
Claire
2025-10-28 15:05:14 +01:00
committed by GitHub
parent 9c7d09993d
commit 8fb524e07f
5 changed files with 108 additions and 27 deletions

View File

@@ -8,10 +8,8 @@ class ActivityPub::Activity::Update < ActivityPub::Activity
if equals_or_includes_any?(@object['type'], %w(Application Group Organization Person Service))
update_account
elsif equals_or_includes_any?(@object['type'], %w(Note Question))
elsif supported_object_type? || converted_object_type?
update_status
elsif converted_object_type?
Status.find_by(uri: object_uri, account_id: @account.id)
end
end