Add comment

This commit is contained in:
syuilo 2018-12-08 10:20:43 +09:00
parent 34393ef89f
commit b2dedf7f98
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 2 additions and 0 deletions

View File

@ -161,6 +161,8 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
const combinedTokens = tokens.concat(cwTokens); const combinedTokens = tokens.concat(cwTokens);
tags = data.apHashtags || extractHashtags(combinedTokens); tags = data.apHashtags || extractHashtags(combinedTokens);
// MongoDBのインデックス対象は128文字以上にできない
tags = tags.filter(tag => tag.length <= 100); tags = tags.filter(tag => tag.length <= 100);
emojis = data.apEmojis || extractEmojis(combinedTokens); emojis = data.apEmojis || extractEmojis(combinedTokens);