diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-15 05:42:14 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-15 05:42:14 +0900 |
| commit | fc31e44fd2d70ae8f4114009a26f00fc5db01fca (patch) | |
| tree | f5a6cd8c7db7de6b66b6fa6736970105f64fd93a /src/server/api/endpoints/aggregation | |
| parent | Resolve #2328 (diff) | |
| download | sharkey-fc31e44fd2d70ae8f4114009a26f00fc5db01fca.tar.gz sharkey-fc31e44fd2d70ae8f4114009a26f00fc5db01fca.tar.bz2 sharkey-fc31e44fd2d70ae8f4114009a26f00fc5db01fca.zip | |
Fix bug
Diffstat (limited to 'src/server/api/endpoints/aggregation')
| -rw-r--r-- | src/server/api/endpoints/aggregation/hashtags.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/aggregation/hashtags.ts b/src/server/api/endpoints/aggregation/hashtags.ts index c5aacd89cd..ffeafb2538 100644 --- a/src/server/api/endpoints/aggregation/hashtags.ts +++ b/src/server/api/endpoints/aggregation/hashtags.ts @@ -3,7 +3,7 @@ import Meta from '../../../../models/meta'; export default () => new Promise(async (res, rej) => { const meta = await Meta.findOne({}); - const hidedTags = (meta.hidedTags || []).map(t => t.toLowerCase()); + const hidedTags = meta ? (meta.hidedTags || []).map(t => t.toLowerCase()) : []; const span = 1000 * 60 * 60 * 24 * 7; // 1週間 |