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

This commit is contained in:
Shlee 2026-08-05 22:02:01 +09:30 committed by Tarrien
parent b42e3df010
commit dc8e85faca

View File

@ -70,7 +70,7 @@ class ActivityPub::ProcessFeaturedItemService
return false if Account.exists?(uri: @actor_uri) return false if Account.exists?(uri: @actor_uri)
object_json = fetch_resource(@actor_uri, true, raise_on_error: :temporary) 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 end
def verify_authorization! def verify_authorization!