Skip to content

Node.js based forum software built for the modern web

fix: use existing id if checkHeader returns false

Julian Lame6996846acd2
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js
index 52f5d373e3..ce9371fd26 100644
--- a/src/activitypub/notes.js
+++ b/src/activitypub/notes.js
@@ -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);