File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/velog-cron/src/services/PostService Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ export class PostService implements Service {
273
273
}
274
274
275
275
const notAlphanumbericKorean = replaced . replace ( / [ a - z A - Z ㄱ - 힣 0 - 9 ] / g, '' ) // remove korean
276
- if ( notAlphanumbericKorean . length / replaced . length > 0.35 ) {
276
+ if ( notAlphanumbericKorean . length / replaced . length > 0.2 ) {
277
277
score ++
278
278
}
279
279
@@ -295,10 +295,10 @@ export class PostService implements Service {
295
295
}
296
296
}
297
297
298
- if ( score >= 3 ) {
298
+ if ( score >= 4 ) {
299
299
return {
300
300
isSpam : true ,
301
- reason : `initScore: ${ initScore } , foreign, ${ 'bannedAltKeywords: ' . concat (
301
+ reason : `initScore: ${ initScore } , ${ 'bannedAltKeywords: ' . concat (
302
302
usedBannedAltKeywords . join ( ',' ) ,
303
303
) } `,
304
304
}
You can’t perform that action at this time.
0 commit comments