diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-17 23:49:47 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | 30d4fb1e6ea5144e0b16d9acd74b40811caa7df2 (patch) | |
tree | 4bf2dc8f6205a335c0edb79626f05087b02de6d1 /app/services | |
parent | a6fff867bbc8ad025ff4acba1158815b612e40db (diff) |
[Bug Prevention] Do not process local collection URLs
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/activitypub/fetch_collection_items_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |