From 30d4fb1e6ea5144e0b16d9acd74b40811caa7df2 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 17 Aug 2020 23:49:47 -0500 Subject: [Bug Prevention] Do not process local collection URLs --- app/services/activitypub/fetch_collection_items_service.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/services') diff --git a/app/services/activitypub/fetch_collection_items_service.rb b/app/services/activitypub/fetch_collection_items_service.rb index 2d990dbf5..5b93ea221 100644 --- a/app/services/activitypub/fetch_collection_items_service.rb +++ b/app/services/activitypub/fetch_collection_items_service.rb @@ -7,6 +7,8 @@ class ActivityPub::FetchCollectionItemsService < BaseService @account = account @allow_synchronous_requests = allow_synchronous_requests + return [] if ActivityPub::TagManager.instance.local_uri?(collection_or_uri) + collection_items(collection_or_uri, page_limit, item_limit) end -- cgit