Skip to content

Node.js based forum software built for the modern web

fix: silently return if ap Follow received targeting an object that is not a local user or category

Julian Lam1bae7ed69ea0
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index db38dce554..bbb90051ae 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -621,7 +621,7 @@ inbox.follow = async (req) => {
if (type === 'application') {
return activitypub.relays.handshake(req.body);
} else if (!['category', 'user'].includes(type)) {
- throw new Error('[[error:activitypub.invalid-id]]');
+ return;
}
const assertion = await activitypub.actors.assert(actor);