fix: perform Link header check on note assertion only when skipChecks is falsy

This commit is contained in:
Julian Lam
2025-09-10 14:59:13 -04:00
parent 0311b98ed7
commit 953c051c2e

View File

@@ -63,7 +63,9 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
return null;
}
if (!options.skipChecks) {
id = (await activitypub.checkHeader(id)) || id;
}
let chain;
let context = await activitypub.contexts.get(uid, id);