dkforest

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

commit ce30466c286705f3938d028774e214c321f78452
parent 28807ba7cc60bf2dac31e9cf184a162fd7979464
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 18 Jan 2023 20:59:00 -0800

add profanity words

Diffstat:
Mpkg/web/handlers/api/v1/spamInterceptor.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/api/v1/spamInterceptor.go b/pkg/web/handlers/api/v1/spamInterceptor.go @@ -93,7 +93,7 @@ func checkSpam(origMessage string, authUser *database.User) error { } } - profanityWords := []string{"cock", "dick", "nigger", "niggers", "nigga", "niggas", "sex"} + profanityWords := []string{"cock", "dick", "nigger", "niggers", "nigga", "niggas", "sex", "rape", "porn"} profanity := 0 for _, w := range profanityWords { if n, ok := wordsMap[w]; ok {