mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
fix: dont stream hidden posts over websocket
This commit is contained in:
parent
feebae8a3d
commit
0bbd8c10ef
3 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,7 @@ export default class extends Channel {
|
|||
}
|
||||
|
||||
private async onNote(note: Packed<"Note">) {
|
||||
if (note.visibility === "hidden") return;
|
||||
if (note.channelId) {
|
||||
if (!this.followingChannels.has(note.channelId)) return;
|
||||
} else {
|
||||
|
|
|
@ -29,6 +29,7 @@ export default class extends Channel {
|
|||
}
|
||||
|
||||
private async onNote(note: Packed<"Note">) {
|
||||
if (note.visibility === "hidden") return;
|
||||
// チャンネルの投稿ではなく、自分自身の投稿 または
|
||||
// チャンネルの投稿ではなく、その投稿のユーザーをフォローしている または
|
||||
// チャンネルの投稿ではなく、全体公開のローカルの投稿 または
|
||||
|
|
|
@ -49,6 +49,7 @@ export default class extends Channel {
|
|||
}
|
||||
|
||||
private async onNote(note: Packed<"Note">) {
|
||||
if (note.visibility === "hidden") return;
|
||||
if (!this.listUsers.includes(note.userId)) return;
|
||||
|
||||
// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
|
||||
|
|
Loading…
Add table
Reference in a new issue