mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
返すタグの数を制限
This commit is contained in:
parent
f41a9ad88b
commit
9aac072e6c
@ -60,5 +60,7 @@ export default () => new Promise(async (res, rej) => {
|
|||||||
// タグを人気順に並べ替え
|
// タグを人気順に並べ替え
|
||||||
tags = tags.sort((a, b) => b.count - a.count);
|
tags = tags.sort((a, b) => b.count - a.count);
|
||||||
|
|
||||||
|
tags = tags.slice(0, 30);
|
||||||
|
|
||||||
res(tags);
|
res(tags);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user