1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-02 00:38:14 +09:00

返すタグの数を制限

This commit is contained in:
syuilo 2018-09-07 20:23:46 +09:00
parent 8c6856d894
commit d9fe9cc5df
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -60,5 +60,7 @@ export default () => new Promise(async (res, rej) => {
// タグを人気順に並べ替え
tags = tags.sort((a, b) => b.count - a.count);
tags = tags.slice(0, 30);
res(tags);
});