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 @@ -252,7 +252,7 @@ export class PostService implements Service {
252
252
} )
253
253
254
254
if ( checkKeyword ) {
255
- return { isSpam : true , reason : `bannedKeyword: ` . concat ( ...usedBannedKeywords ) }
255
+ return { isSpam : true , reason : `bannedKeyword: ` . concat ( ...usedBannedKeywords . join ( ',' ) ) }
256
256
}
257
257
258
258
const bannedAltKeywords = await this . db . dynamicConfigItem . findMany ( {
@@ -289,7 +289,7 @@ export class PostService implements Service {
289
289
if ( score >= 2 && isForeign ) {
290
290
return {
291
291
isSpam : true ,
292
- reason : `initScore: ${ initScore } , foreign, ${ 'BannedAltKeywords : ' . concat (
292
+ reason : `initScore: ${ initScore } , foreign, ${ 'bannedAltKeywords : ' . concat (
293
293
usedBannedAltKeywords . join ( ',' ) ,
294
294
) } `,
295
295
}
@@ -298,7 +298,7 @@ export class PostService implements Service {
298
298
if ( score >= 3 ) {
299
299
return {
300
300
isSpam : true ,
301
- reason : `initScore: ${ initScore } , foreign, ${ 'BannedAltKeywords : ' . concat (
301
+ reason : `initScore: ${ initScore } , foreign, ${ 'bannedAltKeywords : ' . concat (
302
302
usedBannedAltKeywords . join ( ',' ) ,
303
303
) } `,
304
304
}
You can’t perform that action at this time.
0 commit comments