handle silenced notes in Channel.isNoteMutedOrBlocked
This commit is contained in:
parent
333b117a2b
commit
324217d102
3 changed files with 9 additions and 11 deletions
|
|
@ -43,11 +43,6 @@ class AntennaChannel extends Channel {
|
|||
|
||||
if (this.isNoteMutedOrBlocked(note)) return;
|
||||
|
||||
if (note.user.isSilenced || note.user.instance?.isSilenced) {
|
||||
if (!this.user) return;
|
||||
if (note.userId !== this.user.id && !this.following[note.userId]) return;
|
||||
}
|
||||
|
||||
this.send('note', note);
|
||||
} else {
|
||||
this.send(data.type, data.body);
|
||||
|
|
|
|||
|
|
@ -60,12 +60,6 @@ class BubbleTimelineChannel extends Channel {
|
|||
if (!this.utilityService.isBubbledHost(note.user.host)) return;
|
||||
|
||||
if (isRenotePacked(note) && !isQuotePacked(note) && !this.withRenotes) return;
|
||||
|
||||
if (note.user.isSilenced) {
|
||||
if (!this.user) return;
|
||||
if (note.userId !== this.user.id && !this.following[note.userId]) return;
|
||||
}
|
||||
|
||||
if (this.isNoteMutedOrBlocked(note)) return;
|
||||
|
||||
const clonedNote = await this.assignMyReaction(note);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue