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