From 42d1c67d568e424f9f7cdecacb72de90a8ccb69c Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Sat, 29 Aug 2020 09:39:50 +0900
Subject: [PATCH] fix(server): Fix #6669

---
 src/services/note/create.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index a530b86f55..c8e3db540d 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -135,6 +135,7 @@ export default async (user: User, data: Option, silent = false) => new Promise<N
 	if (data.localOnly == null) data.localOnly = false;
 	if (data.channel != null) data.visibility = 'public';
 	if (data.channel != null) data.visibleUsers = [];
+	if (data.channel != null) data.localOnly = true;
 
 	// サイレンス
 	if (user.isSilenced && data.visibility === 'public' && data.channel == null) {