diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-06-03 17:40:14 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-06-03 17:40:14 -0400 |
| commit | 0751600c438eb5aa50ad2c53d5fa3cb5c3a44330 (patch) | |
| tree | 8f6e9cf6a9d53d3ae027b9720f9fb694a96fc859 /packages/backend/src/server/api | |
| parent | copy changes to main channel (diff) | |
| download | sharkey-0751600c438eb5aa50ad2c53d5fa3cb5c3a44330.tar.gz sharkey-0751600c438eb5aa50ad2c53d5fa3cb5c3a44330.tar.bz2 sharkey-0751600c438eb5aa50ad2c53d5fa3cb5c3a44330.zip | |
remove duplicate checks from home channel
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/stream/channels/home-timeline.ts | 5 |
1 files changed, 1 insertions, 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); |