Decrease tag limit

This commit is contained in:
syuilo 2019-09-27 05:18:09 +09:00
parent bf9da8458c
commit 4dc4ac2f0c
3 changed files with 4 additions and 4 deletions

View file

@ -165,7 +165,7 @@ export default async (user: User, data: Option, silent = false) => new Promise<N
mentionedUsers = data.apMentions || await extractMentionedUsers(user, combinedTokens);
}
tags = tags.filter(tag => Array.from(tag || '').length <= 128).splice(0, 100);
tags = tags.filter(tag => Array.from(tag || '').length <= 128).splice(0, 32);
if (data.reply && (user.id !== data.reply.userId) && !mentionedUsers.some(u => u.id === data.reply!.userId)) {
mentionedUsers.push(await Users.findOne(data.reply.userId).then(ensure));