From 0751600c438eb5aa50ad2c53d5fa3cb5c3a44330 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Tue, 3 Jun 2025 17:40:14 -0400 Subject: [PATCH] remove duplicate checks from home channel --- .../backend/src/server/api/stream/channels/home-timeline.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/stream/channels/home-timeline.ts b/packages/backend/src/server/api/stream/channels/home-timeline.ts index eb8a3f1ab5..d1dcbd07e5 100644 --- a/packages/backend/src/server/api/stream/channels/home-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/home-timeline.ts @@ -50,6 +50,7 @@ class HomeTimelineChannel extends Channel { if (!isMe && !Object.hasOwn(this.following, note.userId)) return; } + if (this.isNoteMutedOrBlocked(note)) return; if (!this.isNoteVisibleToMe(note)) return; if (note.reply) { @@ -62,8 +63,6 @@ class HomeTimelineChannel extends Channel { } } - if ((note.user.isSilenced || note.user.instance?.isSilenced) && !this.following[note.userId] && note.userId !== this.user!.id) return; - // 純粋なリノート(引用リノートでないリノート)の場合 if (isRenotePacked(note) && !isQuotePacked(note) && note.renote) { if (!this.withRenotes) return; @@ -74,8 +73,6 @@ class HomeTimelineChannel extends Channel { } } - if (this.isNoteMutedOrBlocked(note)) return; - const clonedNote = await this.assignMyReaction(note); await this.hideNote(clonedNote);