From 882924fe26d961c6ef5d7363b65855a380ff9371 Mon Sep 17 00:00:00 2001 From: Ebise Lutica <7106976+EbiseLutica@users.noreply.github.com> Date: Mon, 19 Feb 2024 15:06:52 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=80=E3=82=A4=E3=83=AC=E3=82=AF=E3=83=88?= =?UTF-8?q?=E6=8A=95=E7=A8=BF=E3=82=82=E3=82=B9=E3=83=91=E3=83=A0=E5=AF=BE?= =?UTF-8?q?=E7=AD=96=E3=81=AE=E6=9D=A1=E4=BB=B6=E5=BC=8F=E3=81=AB=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/core/NoteCreateService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts index b5335fc5bbb2..d0a8eb793962 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -363,7 +363,8 @@ export class NoteCreateService implements OnApplicationShutdown { // ローカル宛てのメンション、リプライ、引用ノートの発行元が、ローカルユーザーにフォローされていない場合は投稿を拒否する const willCauseNotification = mentionedUsers.filter(u => u.host === null).length > 0 || (data.reply != null && data.reply.userHost === null) || - (this.isQuote(data) && data.renote.userHost === null); + (this.isQuote(data) && data.renote.userHost === null) || + (data.visibility === 'specified' && data.visibleUsers != null && data.visibleUsers.some(u => u.host === null)); if (user.host != null && willCauseNotification) { const userEntity = await this.usersRepository.findOneBy({ id: user.id });