Skip to content

Node.js based forum software built for the modern web

fix: remove special-case logic that added a requested object to a topic if its defined context didn't actually contain it

Julian Lam70d7e3292920
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;
};