From 4da9d94a161dd93a9fc6eaecfcc8cc434c9d226e Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 3 Nov 2023 00:12:54 +0100 Subject: [PATCH] fix: replies showing if not set to show replies --- packages/backend/src/server/api/endpoints/users/notes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index 31ad3e68d..c862cb118 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -124,6 +124,7 @@ export default class extends Endpoint { // eslint- } if (ps.withFiles && note.fileIds.length === 0) return false; + if (!ps.withReplies && note.replyId) return false; if (note.channel?.isSensitive && !isSelf) return false; if (note.visibility === 'specified' && (!me || (me.id !== note.userId && !note.visibleUserIds.some(v => v === me.id)))) return false;