about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-10-21 18:48:22 +0900
committerGitHub <noreply@github.com>2022-10-21 11:48:22 +0200
commit94feb2b93ff1f381f8dba1ad361a2afd134f02a8 (patch)
treec94058e6db30b1979dc43361045f5a195d86b4f9 /app
parent5e908c5a95a64a4d48e35516723955ac61a15c4d (diff)
Fix `FetchFeaturedCollectionService` spec (#19401)
Regression from #19380
Diffstat (limited to 'app')
-rw-r--r--app/services/activitypub/fetch_featured_collection_service.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/activitypub/fetch_featured_collection_service.rb b/app/services/activitypub/fetch_featured_collection_service.rb
index 026fe24c5..50a187ad9 100644
--- a/app/services/activitypub/fetch_featured_collection_service.rb
+++ b/app/services/activitypub/fetch_featured_collection_service.rb
@@ -43,8 +43,7 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService
 
   def process_note_items(items)
     status_ids = items.filter_map do |item|
-      type = item['type']
-      next unless type == 'Note'
+      next unless item.is_a?(String) || item['type'] == 'Note'
 
       uri = value_or_id(item)
       next if ActivityPub::TagManager.instance.local_uri?(uri)