Fix incorrect attribute being read while processing Collection items (#40052)

This commit is contained in:
Shlee
2026-08-06 11:41:22 +02:00
committed by Claire
parent 3359c149f9
commit 2a43b432a6
@@ -70,7 +70,7 @@ class ActivityPub::ProcessFeaturedItemService
return false if Account.exists?(uri: @actor_uri)
object_json = fetch_resource(@actor_uri, true, raise_on_error: :temporary)
object_json.nil? || (as_array(object_json['fetch']) & ActivityPub::FetchRemoteActorService::SUPPORTED_TYPES).empty?
object_json.nil? || (as_array(object_json['type']) & ActivityPub::FetchRemoteActorService::SUPPORTED_TYPES).empty?
end
def verify_authorization!