mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Fix bug
This commit is contained in:
parent
281971f4a4
commit
a0a4ce4dd9
@ -26,7 +26,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
|||||||
return rej('note not found');
|
return rej('note not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
const ids = note._replyIds.slice(offset, offset + limit);
|
const ids = (note._replyIds || []).slice(offset, offset + limit);
|
||||||
|
|
||||||
// Serialize
|
// Serialize
|
||||||
res(await Promise.all(ids.map(id => pack(id, user))));
|
res(await Promise.all(ids.map(id => pack(id, user))));
|
||||||
|
Loading…
Reference in New Issue
Block a user