From dc8e85faca9cdf837dbe6efdc92b6bdb8bed9226 Mon Sep 17 00:00:00 2001 From: Shlee Date: Wed, 5 Aug 2026 22:02:01 +0930 Subject: [PATCH] Fix incorrect attribute being read while processing Collection items (#40052) --- app/services/activitypub/process_featured_item_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/activitypub/process_featured_item_service.rb b/app/services/activitypub/process_featured_item_service.rb index c89937eec1..92e50e2031 100644 --- a/app/services/activitypub/process_featured_item_service.rb +++ b/app/services/activitypub/process_featured_item_service.rb @@ -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!