mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 06:00:44 +01:00
fix: withreplies not being applied to DB fallback
This commit is contained in:
parent
7eeb3e38ab
commit
e50ac8ccc7
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue