From 1b3adcc2bbc695a0f28f5865a6705e0e59830962 Mon Sep 17 00:00:00 2001 From: Ebise Lutica <7106976+EbiseLutica@users.noreply.github.com> Date: Sun, 18 Feb 2024 01:56:32 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=87=E3=82=A3=E3=83=B3?= =?UTF-8?q?=E3=82=B0=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/NoteCreateService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index 5a1d174d926f..c11eb771b5b5 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -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');