mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 17:56:40 +02:00
fix: do not plumb req.uid into notes.assert (breaks getParentChain)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user