diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-21 00:32:49 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-21 00:32:49 +0900 |
| commit | 6656a59402213cc5b53a1331cd5aadd06fdfd2c0 (patch) | |
| tree | f9394198dd56684e059e29a49dd1e8019ff08f02 /src/server/api/endpoints | |
| parent | Fix #4331 (diff) | |
| download | sharkey-6656a59402213cc5b53a1331cd5aadd06fdfd2c0.tar.gz sharkey-6656a59402213cc5b53a1331cd5aadd06fdfd2c0.tar.bz2 sharkey-6656a59402213cc5b53a1331cd5aadd06fdfd2c0.zip | |
Fix error
Diffstat (limited to 'src/server/api/endpoints')
| -rw-r--r-- | src/server/api/endpoints/notes/user-list-timeline.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/api/endpoints/notes/user-list-timeline.ts b/src/server/api/endpoints/notes/user-list-timeline.ts index eced85353d..eaaa80c3a7 100644 --- a/src/server/api/endpoints/notes/user-list-timeline.ts +++ b/src/server/api/endpoints/notes/user-list-timeline.ts @@ -119,6 +119,11 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => { getHideUserIds(user) ]); + if (list == null) { + rej('list not found'); + return; + } + if (list.userIds.length == 0) { res([]); return; |