remove duplicate checks from home channel

This commit is contained in:
Hazelnoot 2025-06-03 17:40:14 -04:00
parent ebee663410
commit 0751600c43

View file

@ -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);