mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 14:37:36 -07:00
Fix bug
This commit is contained in:
parent
7ab50b241e
commit
7f7308190f
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
|||
return rej('note not found');
|
||||
}
|
||||
|
||||
const ids = note._replyIds.slice(offset, offset + limit);
|
||||
const ids = (note._replyIds || []).slice(offset, offset + limit);
|
||||
|
||||
// Serialize
|
||||
res(await Promise.all(ids.map(id => pack(id, user))));
|
||||
|
|
Loading…
Reference in a new issue