mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
fix antenna channel
This commit is contained in:
parent
6c58171c41
commit
333b117a2b
1 changed files with 2 additions and 5 deletions
|
@ -43,15 +43,12 @@ class AntennaChannel extends Channel {
|
||||||
|
|
||||||
if (this.isNoteMutedOrBlocked(note)) return;
|
if (this.isNoteMutedOrBlocked(note)) return;
|
||||||
|
|
||||||
if (note.user.isSilenced) {
|
if (note.user.isSilenced || note.user.instance?.isSilenced) {
|
||||||
if (!this.user) return;
|
if (!this.user) return;
|
||||||
if (note.userId !== this.user.id && !this.following[note.userId]) return;
|
if (note.userId !== this.user.id && !this.following[note.userId]) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const clonedNote = await this.assignMyReaction(note);
|
this.send('note', note);
|
||||||
await this.hideNote(clonedNote);
|
|
||||||
|
|
||||||
this.send('note', clonedNote);
|
|
||||||
} else {
|
} else {
|
||||||
this.send(data.type, data.body);
|
this.send(data.type, data.body);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue