We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5220e78 commit 1f0a6caCopy full SHA for 1f0a6ca
apps/server/src/services/PostApiService/index.mts
@@ -205,10 +205,20 @@ export class PostApiService implements Service {
205
const isTusted = await this.userService.checkTrust(signedUserId)
206
if (isPublish && !isTusted) {
207
const isVerified = await this.verifyTurnstile(token)
208
- checks.push({
209
- type: 'turnstile',
210
- value: !isVerified,
211
- })
+ if (!isVerified) {
+ await this.alertIsSpam({
+ action: type,
+ userId: user.id,
212
+ title: input.title!,
213
+ country,
214
+ ip,
215
+ type: 'turnstile',
216
+ })
217
+ }
218
+ // checks.push({
219
+ // type: 'turnstile',
220
+ // value: !isVerified,
221
+ // })
222
}
223
224
const isSpam = checks.map(({ value }) => value).some((check) => check)
0 commit comments