Fix error

This commit is contained in:
syuilo 2019-02-21 00:32:49 +09:00
parent 7612ead551
commit 6656a59402
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -119,6 +119,11 @@ export default define(meta, (ps, user) => new Promise(async (res, rej) => {
getHideUserIds(user) getHideUserIds(user)
]); ]);
if (list == null) {
rej('list not found');
return;
}
if (list.userIds.length == 0) { if (list.userIds.length == 0) {
res([]); res([]);
return; return;