From 600482660ba79f07cce03faf0306debee8db3ed1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 11 Jun 2018 01:12:37 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=82=B0=E3=81=AF=E6=9C=80=E5=A4=A710?= =?UTF-8?q?0=E6=96=87=E5=AD=97=E3=81=BE=E3=81=A7=E3=81=AB=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/note/create.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index f820182a4..ddf07716e 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -94,7 +94,7 @@ export default async (user: IUser, data: { if (data.visibility == null) data.visibility = 'public'; if (data.viaMobile == null) data.viaMobile = false; - const tags = data.tags || []; + let tags = data.tags || []; let tokens: any[] = null; @@ -114,6 +114,8 @@ export default async (user: IUser, data: { }); } + tags = tags.filter(tag => tag.length <= 100); + if (data.visibleUsers) { data.visibleUsers = data.visibleUsers.filter(x => x != null); }