Skip to content

Node.js based forum software built for the modern web

fix: silent return when cid matching protection fails for inbox.announce

Julian Lam502b8149f2df
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index 65e0a1eeff..b766aaf945 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -563,7 +563,7 @@ inbox.announce = async (req) => {
// Category actors can only publish activities concerning objects in said category
const _cid = await posts.getCidByPid(id);
if (_cid !== cid) {
- throw new Error('[[error:invalid-cid]]');
+ return;
}
}