mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 01:26:12 +02:00
fix: skip header checking during note assertion if test runner is active
This commit is contained in:
@@ -71,7 +71,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
|
||||
}
|
||||
|
||||
try {
|
||||
if (!options.skipChecks) {
|
||||
if (!(options.skipChecks || process.env.hasOwnProperty('CI'))) {
|
||||
id = (await activitypub.checkHeader(id)) || id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user