From ba349fc62fe9383b8de2bf7d6850fd6e767eb37d Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 12 Jan 2023 16:33:00 +0000 Subject: [PATCH] Fix #9534 --- 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 1c2add5d6..112b84fdf 100644 --- a/packages/backend/src/core/NoteCreateService.ts +++ b/packages/backend/src/core/NoteCreateService.ts @@ -226,7 +226,7 @@ export class NoteCreateService { if (data.channel != null) data.localOnly = true; if (data.visibility === 'public' && data.channel == null) { - if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote) { + if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote === false) { data.visibility = 'home'; } }