1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00

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

View File

@ -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);