From 70d7e3292920fd07a5f9e02ea20d4d746e51bd72 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 25 Aug 2025 10:11:09 -0400 Subject: [PATCH] fix: remove special-case logic that added a requested object to a topic if its defined context didn't actually contain it --- src/activitypub/contexts.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/activitypub/contexts.js b/src/activitypub/contexts.js index 0748e42ece..9d6c948a5e 100644 --- a/src/activitypub/contexts.js +++ b/src/activitypub/contexts.js @@ -113,19 +113,6 @@ Contexts.getItems = async (uid, id, options) => { return chain; } - // Handle special case where originating object is not actually part of the context collection - const inputId = activitypub.helpers.isUri(options.input) ? options.input : options.input.id; - const inCollection = Array.from(chain).map(p => p.pid).includes(inputId); - if (!inCollection) { - const item = activitypub.helpers.isUri(options.input) ? - await parseString(uid, options.input) : - await parseItem(uid, options.input); - - if (item) { - chain.add(item); - } - } - return chain; };