commit 7f2b215a2a5910d03a15bd83d0021a8e862d14e3
parent 304d8da29dc063e88771221bf706dc5bfedc0ed9
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 4 Jan 2023 21:14:57 -0800
typo
Diffstat:
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
}
}