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;