From e50ac8ccc75f97254e394c4eedfbe91a6078237c Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Sun, 5 Nov 2023 13:25:35 +0100 Subject: [PATCH] fix: withreplies not being applied to DB fallback --- packages/backend/src/server/api/endpoints/users/notes.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index c862cb1188..a6455f8e96 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -182,6 +182,10 @@ export default class extends Endpoint { // 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);