From 4de4a2e14369acb79f070795e482a60700d97b12 Mon Sep 17 00:00:00 2001 From: shiosyakeyakini Date: Sun, 3 Dec 2023 10:18:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20withChannelNotes=E3=81=A8withFiles?= =?UTF-8?q?=E3=82=92=E5=90=8C=E6=99=82=E3=81=AB=E6=8C=87=E5=AE=9A=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AE=E8=80=83=E6=85=AE=20(#1255?= =?UTF-8?q?0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: sorairo --- packages/backend/src/server/api/endpoints/users/notes.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index 56983f7bc4..4a358b39cb 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -113,6 +113,9 @@ export default class extends Endpoint { // eslint- redisTimelines, useDbFallback: true, noteFilter: note => { + if (ps.withFiles && note.fileIds.length === 0) { + return false; + } if (me && isUserRelated(note, userIdsWhoMeMuting, true)) return false; if (note.renoteId) {