dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit b47da0b68d034c57244897f277d6928c6dc2176c
parent ec58449486e9d2a128d6f3e9cce304d9199f1b49
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat,  1 Jul 2023 15:52:41 -0700

autocleanup

Diffstat:
Mpkg/web/handlers/interceptors/spamInterceptor.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/pkg/web/handlers/interceptors/spamInterceptor.go b/pkg/web/handlers/interceptors/spamInterceptor.go @@ -183,6 +183,7 @@ func checkSpam(db *database.DkfDB, origMessage, lowerCaseMessage string, authUse if (wordsMap["need"] > 0 && wordsMap["help"] > 0) || (wordsMap["help"] > 0 && wordsMap["me"] > 0) || (wordsMap["make"] > 0 && wordsMap["money"] > 0) || + (wordsMap["interesting"] > 0 && (wordsMap["link"] > 0 || wordsMap["links"] > 0)) || wordsMap["porn"] > 0 || wordsMap["murder"] > 0 { _ = dutils.SelfKick(db, *authUser, silentSelfKick) @@ -252,6 +253,8 @@ func autoKickSpammers(authUser *database.User, lowerCaseMessage string) bool { func autoHellbanCheck(authUser *database.User, lowerCaseMessage string) bool { checks := []string{ "new here", + "new to this", + "new at this", "legit market", "help me", }