From b2117ba3a18addea9f94fdda92029a6c0263cdab Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 12 Jan 2023 16:53:55 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=A2=E3=83=BC=E3=83=88=E3=83=A6?= =?UTF-8?q?=E3=83=BC=E3=82=B6=E3=83=BC=E3=81=AFcanPublicNote=E3=81=8Cfalse?= =?UTF-8?q?=E3=81=A7=E3=82=82home=E3=81=AB=E3=81=97=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=20https://github.com/misskey-dev/mi?= =?UTF-8?q?sskey/issues/9534#issuecomment-1380645073?= 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 112b84fdf..f460a6f4a 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -225,7 +225,7 @@ export class NoteCreateService { if (data.channel != null) data.visibleUsers = []; if (data.channel != null) data.localOnly = true; - if (data.visibility === 'public' && data.channel == null) { + if (data.visibility === 'public' && this.userEntityService.isLocalUser(user) && data.channel == null) { if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote === false) { data.visibility = 'home'; }