mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: use existing id if checkHeader returns false
This commit is contained in:
@@ -63,7 +63,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
id = await activitypub.checkHeader(id);
|
||||
id = (await activitypub.checkHeader(id)) || id;
|
||||
|
||||
let chain;
|
||||
let context = await activitypub.contexts.get(uid, id);
|
||||
|
||||
Reference in New Issue
Block a user