Commit
•
6ffa809
1
Parent(s):
4ae2e41
improve censorship
Browse files
src/app/server/actions/censorship.ts
CHANGED
@@ -158,15 +158,15 @@ export const filterOutBadWords = (sentence: string) => {
|
|
158 |
let result: string = word
|
159 |
// some users want to play it smart and bypass our system so let's play too
|
160 |
if (chickens.includes(fingerprint)) {
|
161 |
-
result = "
|
162 |
} else if (ducks.includes(fingerprint)) {
|
163 |
-
result = "
|
164 |
} else if (cats.includes(fingerprint)) {
|
165 |
result = "cat"
|
166 |
} else if (roasted.includes(fingerprint)) {
|
167 |
-
result = "
|
168 |
} else if (young.includes(fingerprint)) {
|
169 |
-
result = "
|
170 |
} else if (banned.includes(fingerprint)) {
|
171 |
result = "_BANNED_"
|
172 |
}
|
|
|
158 |
let result: string = word
|
159 |
// some users want to play it smart and bypass our system so let's play too
|
160 |
if (chickens.includes(fingerprint)) {
|
161 |
+
result = "chicken"
|
162 |
} else if (ducks.includes(fingerprint)) {
|
163 |
+
result = "duck"
|
164 |
} else if (cats.includes(fingerprint)) {
|
165 |
result = "cat"
|
166 |
} else if (roasted.includes(fingerprint)) {
|
167 |
+
result = "penguin"
|
168 |
} else if (young.includes(fingerprint)) {
|
169 |
+
result = "woman"
|
170 |
} else if (banned.includes(fingerprint)) {
|
171 |
result = "_BANNED_"
|
172 |
}
|