From 198b59ca3ec45cbf6e73f53e1f39c7204d8a70c9 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 e1fa560a8a..352e1cbf5b 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