mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 04:54:32 +00:00
remove duplicate checks from home channel
This commit is contained in:
parent
ebee663410
commit
0751600c43
1 changed files with 1 additions and 4 deletions
|
@ -50,6 +50,7 @@ class HomeTimelineChannel extends Channel {
|
||||||
if (!isMe && !Object.hasOwn(this.following, note.userId)) return;
|
if (!isMe && !Object.hasOwn(this.following, note.userId)) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.isNoteMutedOrBlocked(note)) return;
|
||||||
if (!this.isNoteVisibleToMe(note)) return;
|
if (!this.isNoteVisibleToMe(note)) return;
|
||||||
|
|
||||||
if (note.reply) {
|
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 (isRenotePacked(note) && !isQuotePacked(note) && note.renote) {
|
||||||
if (!this.withRenotes) return;
|
if (!this.withRenotes) return;
|
||||||
|
@ -74,8 +73,6 @@ class HomeTimelineChannel extends Channel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isNoteMutedOrBlocked(note)) return;
|
|
||||||
|
|
||||||
const clonedNote = await this.assignMyReaction(note);
|
const clonedNote = await this.assignMyReaction(note);
|
||||||
await this.hideNote(clonedNote);
|
await this.hideNote(clonedNote);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue