summaryrefslogtreecommitdiff
path: root/src/services/note/create.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-08-29 09:39:50 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-08-29 09:39:50 +0900
commit42d1c67d568e424f9f7cdecacb72de90a8ccb69c (patch)
treec74fd13106020f97303100a3bf73bc60f47dada7 /src/services/note/create.ts
parentExpose proxyAccountName (#6670) (diff)
downloadsharkey-42d1c67d568e424f9f7cdecacb72de90a8ccb69c.tar.gz
sharkey-42d1c67d568e424f9f7cdecacb72de90a8ccb69c.tar.bz2
sharkey-42d1c67d568e424f9f7cdecacb72de90a8ccb69c.zip
fix(server): Fix #6669
Diffstat (limited to 'src/services/note/create.ts')
-rw-r--r--src/services/note/create.ts1
1 files changed, 1 insertions, 0 deletions
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) {