From 8bc0fd526548eeabfb36b64f130dc2f3b8a451b3 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 26 May 2025 10:24:46 +0200 Subject: [PATCH] Fix `NoMethodError` in `ActivityPub::FetchFeaturedCollectionService` (#34811) --- app/services/activitypub/fetch_featured_collection_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/activitypub/fetch_featured_collection_service.rb b/app/services/activitypub/fetch_featured_collection_service.rb index 267c0b4619f..13c55cd5665 100644 --- a/app/services/activitypub/fetch_featured_collection_service.rb +++ b/app/services/activitypub/fetch_featured_collection_service.rb @@ -9,6 +9,7 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService @account = account @options = options @json = fetch_collection(options[:collection].presence || @account.featured_collection_url) + return if @json.blank? process_items(collection_items(@json)) end