Skip to content

Commit

Permalink
コーディングミスを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
EbiseLutica committed Feb 17, 2024
1 parent c68e931 commit 1b3adcc
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 @@ -360,7 +360,7 @@ export class NoteCreateService implements OnApplicationShutdown {
}

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

0 comments on commit 1b3adcc

Please sign in to comment.