Skip to content

Commit 6c0c648

Browse files
committed
Loosened check criteria for file preview.
1 parent fd83ebf commit 6c0c648

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/feeds/AutoModManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,10 @@ async function analyseMod(mod: Partial<IMod>, rules: IAutomodRule[], user: Disco
256256
flags.high.push('First upload, short description. Probable spam.')
257257
}
258258
flags.low.push('First mod upload')
259+
};
259260

261+
// Check the content preview for first mod uploads
262+
if (mod.uploader!.modCount <= 1) {
260263
try {
261264
const previewCheck = await checkFilePreview(mod, user)
262265
if (previewCheck.flags.high.length) flags.high.push(...previewCheck.flags.high)
@@ -265,7 +268,7 @@ async function analyseMod(mod: Partial<IMod>, rules: IAutomodRule[], user: Disco
265268
catch(err) {
266269
logMessage(`Failed to check content preview for ${mod.name} for ${mod.game?.name}`, err, true);
267270
}
268-
};
271+
}
269272

270273
// Check against automod rules
271274
let allText = `${mod.name}\n${mod.summary}\n${mod.description}`.toLowerCase();

0 commit comments

Comments
 (0)