Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EbiseLutica committed Feb 17, 2024
1 parent 1b3adcc commit 33cb507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ export class NoteCreateService implements OnApplicationShutdown {

// #region Shrimpia
if (user.host != null && mentionedUsers.length > 0) {
const userEntity = await this.usersRepository.findOneByOrFail({ id: user.id });
if (userEntity.followersCount === 0) {
const userEntity = await this.usersRepository.findOneBy({ id: user.id });
if ((userEntity?.followersCount ?? 0) === 0) {
throw new Error('Temporarily, notes including mentions from remote users which no followers are not allowed');
}
}
Expand Down

0 comments on commit 33cb507

Please sign in to comment.