dkforest

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

commit 7f2b215a2a5910d03a15bd83d0021a8e862d14e3
parent 304d8da29dc063e88771221bf706dc5bfedc0ed9
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed,  4 Jan 2023 21:14:57 -0800

typo

Diffstat:
Mpkg/web/handlers/api/v1/spamInterceptor.go | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

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