From 953c051c2e546364a8a28d4097ebceac1876bcac Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 10 Sep 2025 14:59:13 -0400 Subject: [PATCH] fix: perform Link header check on note assertion only when skipChecks is falsy --- src/activitypub/notes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index 3b15ab0137..50ce01bf3c 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -63,7 +63,9 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => { return null; } - id = (await activitypub.checkHeader(id)) || id; + if (!options.skipChecks) { + id = (await activitypub.checkHeader(id)) || id; + } let chain; let context = await activitypub.contexts.get(uid, id);