Skip to content

Commit

Permalink
Improved description parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pickysaurus committed Aug 25, 2024
1 parent 6f0d7b2 commit ce28d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feeds/AutoModManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async function analyseMod(mod: Partial<IMod>, rules: IAutomodRule[]): Promise<IM
}

if (mod.uploader!.modCount <= 1) {
if (mod.description?.length ?? 0 < 150) {
if ((mod.description ?? '').length < 150) {
flags.high.push('First upload, short description. Probable spam.')
}
flags.low.push('First mod upload')
Expand Down

0 comments on commit ce28d42

Please sign in to comment.