fix: withreplies not being applied to DB fallback

This commit is contained in:
Mar0xy 2023-11-05 13:25:35 +01:00
parent 7eeb3e38ab
commit e50ac8ccc7
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -182,6 +182,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}));
}
if (!ps.withReplies) {
query.andWhere('note.replyId IS NULL');
}
const timeline = await query.limit(ps.limit).getMany();
return await this.noteEntityService.packMany(timeline, me);