From b2dedf7f985fc47c41817c1a3c91ff4ccddd87f6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 8 Dec 2018 10:20:43 +0900 Subject: [PATCH] Add comment --- src/services/note/create.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/note/create.ts b/src/services/note/create.ts index 6043a537db..fd76af6b9f 100644 --- a/src/services/note/create.ts +++ b/src/services/note/create.ts @@ -161,6 +161,8 @@ export default async (user: IUser, data: Option, silent = false) => new Promise< const combinedTokens = tokens.concat(cwTokens); tags = data.apHashtags || extractHashtags(combinedTokens); + + // MongoDBのインデックス対象は128文字以上にできない tags = tags.filter(tag => tag.length <= 100); emojis = data.apEmojis || extractEmojis(combinedTokens);