Skip to content

Node.js based forum software built for the modern web

fix: do not plumb req.uid into notes.assert (breaks getParentChain)

Julian Lamce4549c5247d
diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js
index c9dbf5192a..11598ea02d 100644
--- a/src/activitypub/inbox.js
+++ b/src/activitypub/inbox.js
@@ -53,7 +53,7 @@ inbox.create = async (req) => {
cid = Array.from(cids)[0];
}
- const asserted = await activitypub.notes.assert(req.uid || 0, object, { cid });
+ const asserted = await activitypub.notes.assert(0, object, { cid });
if (asserted) {
await activitypub.feps.announce(object.id, req.body);
// api.activitypub.add(req, { pid: object.id });
@@ -461,7 +461,7 @@ inbox.announce = async (req) => {
return;
}
- const assertion = await activitypub.notes.assert(req.uid || 0, pid, { cid, skipChecks: true });
+ const assertion = await activitypub.notes.assert(0, pid, { cid, skipChecks: true });
if (!assertion) {
return;
}