diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index 4ecdf10413c3..92d6b9d49c99 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -380,8 +380,7 @@ export class NoteCreateService implements OnApplicationShutdown { const isAllowedToCreateNotification = () => { const targetUserIds: string[][] = []; targetUserIds.push(mentionedUsers.filter(x => x.host == null).map(x => x.id)); - if (data.visibility === 'specified' && data.visibleUsers != null) - targetUserIds.push(data.visibleUsers.filter(x => x.host == null).map(x => x.id)); + if (data.visibility === 'specified' && data.visibleUsers != null) targetUserIds.push(data.visibleUsers.filter(x => x.host == null).map(x => x.id)); if (data.reply != null && data.reply.userHost == null) targetUserIds.push([data.reply.userId]); if (this.isRenote(data) && this.isQuote(data) && data.renote.userHost === null) targetUserIds.push([data.renote.userId]); const allowedIds = new Set(meta.nirilaAllowedUnfamiliarRemoteUserIds);