Skip to content

Node.js based forum software built for the modern web

fix: match cid checks in inbox.move with that of inbox.remove

Julian Lam60577d01f89f
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index d92cd53c7f..4fe734d256 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -162,7 +162,7 @@ inbox.move = async (req) => {
// Ensure that cid is same-origin as the actor
const tid = await posts.getPostField(mainPid, 'tid');
const cid = await topics.getTopicField(tid, 'cid');
- if (utils.isNumber(cid)) {
+ if (utils.isNumber(cid) || cid !== fromCid) {
// remote removal of topic in local cid, or resolved cid does not match
return;
}