We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a89092 commit 0fc5792Copy full SHA for 0fc5792
src/forum.nim
@@ -260,6 +260,8 @@ proc stopForumSpamCheck(c: TForumData): bool =
260
proc spamHeuristicsCheck(c: TForumData, content: string, topic = ""): bool =
261
if c.rank == Moderated:
262
var spamScore = 0.0
263
+ if topic.startsWith("https://") or topic.startsWith("http://") or topic.startsWith("www."):
264
+ spamScore += 1.0
265
if topic.len > 8 and topic.allCharsInSet(UppercaseLetters + Digits + Whitespace):
266
spamScore += 1.0
267
let dollar = content.find('$')
0 commit comments