Skip to content

Commit

Permalink
enhance: スパムを弾いた時のログレベルをerrorからinfoに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Feb 18, 2024
1 parent 3da2a8d commit ac2dd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class NoteCreateService implements OnApplicationShutdown {
if (meta.blockMentionsFromUnfamiliarRemoteUsers && user.host !== null && willCauseNotification) {
const userEntity = await this.usersRepository.findOneBy({ id: user.id });
if ((userEntity?.followersCount ?? 0) === 0) {
this.logger.error('Request rejected because user has no local followers', { user: user.id, note: data });
this.logger.info('Request rejected because user has no local followers', { user: user.id, note: data });
return null;
}
}
Expand Down

0 comments on commit ac2dd69

Please sign in to comment.