diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-07 20:23:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-07 20:23:46 +0900 |
| commit | d9fe9cc5df7d3b7964a303544dd3dbbdf1cf5dd7 (patch) | |
| tree | 6bc2820968e35145dfcd5fa21d42b4b332ddc2f6 | |
| parent | Improve welcome page (diff) | |
| download | sharkey-d9fe9cc5df7d3b7964a303544dd3dbbdf1cf5dd7.tar.gz sharkey-d9fe9cc5df7d3b7964a303544dd3dbbdf1cf5dd7.tar.bz2 sharkey-d9fe9cc5df7d3b7964a303544dd3dbbdf1cf5dd7.zip | |
返すタグの数を制限
| -rw-r--r-- | src/server/api/endpoints/aggregation/hashtags.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/api/endpoints/aggregation/hashtags.ts b/src/server/api/endpoints/aggregation/hashtags.ts index 0daf42427b..c5aacd89cd 100644 --- a/src/server/api/endpoints/aggregation/hashtags.ts +++ b/src/server/api/endpoints/aggregation/hashtags.ts @@ -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); }); |