about summary refs log tree commit diff
path: root/app/services/activitypub
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2021-01-26 16:42:38 -0600
committerStarfall <us@starfall.systems>2021-01-26 16:42:38 -0600
commit3ef928029d94a2b3c6abf96a2935de85c4eed6c8 (patch)
treed8697b527a0a42e51634b1fef68f0162fe2ccbe2 /app/services/activitypub
parent65263e6309fb4dea1a93d4b4806af629d317c156 (diff)
parent52ff3ca675ecac0ff32990b6321fb5e349e6dc59 (diff)
Merge remote-tracking branch 'glitchsoc/main' into main
Diffstat (limited to 'app/services/activitypub')
-rw-r--r--app/services/activitypub/fetch_featured_collection_service.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/services/activitypub/fetch_featured_collection_service.rb b/app/services/activitypub/fetch_featured_collection_service.rb
index 82c861f5b..72352aca6 100644
--- a/app/services/activitypub/fetch_featured_collection_service.rb
+++ b/app/services/activitypub/fetch_featured_collection_service.rb
@@ -23,11 +23,8 @@ class ActivityPub::FetchFeaturedCollectionService < BaseService
 
   def process_items(items)
     status_ids = items.map { |item| value_or_id(item) }
-                      .reject { |uri| ActivityPub::TagManager.instance.local_uri?(uri) }
-                      .filter_map { |uri| ActivityPub::FetchRemoteStatusService.new.call(uri) }
-                      .select { |status| status.account_id == @account.id }
-                      .map(&:id)
-
+                      .filter_map { |uri| ActivityPub::FetchRemoteStatusService.new.call(uri) unless ActivityPub::TagManager.instance.local_uri?(uri) }
+                      .filter_map { |status| status.id if status.account_id == @account.id }
     to_remove = []
     to_add    = status_ids