From 6df0f3cb9519aa84a8140b9ebd3df122ea4270b9 Mon Sep 17 00:00:00 2001 From: tar_bin Date: Sat, 21 Dec 2024 18:01:02 +0900 Subject: [PATCH] =?UTF-8?q?visibility=E3=81=AE=E5=87=A6=E7=90=86=E3=82=92f?= =?UTF-8?q?astify=E3=81=AB=E5=90=88=E3=82=8F=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/stream/channels/antenna.ts | 2 +- packages/backend/src/server/api/stream/channels/channel.ts | 2 +- .../backend/src/server/api/stream/channels/global-timeline.ts | 2 +- .../backend/src/server/api/stream/channels/home-timeline.ts | 2 +- .../backend/src/server/api/stream/channels/hybrid-timeline.ts | 2 +- .../backend/src/server/api/stream/channels/local-timeline.ts | 2 +- .../backend/src/server/api/stream/channels/role-timeline.ts | 2 +- packages/backend/src/server/api/stream/channels/user-list.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/backend/src/server/api/stream/channels/antenna.ts b/packages/backend/src/server/api/stream/channels/antenna.ts index 56b073c9fd0a..6f3f36efe18c 100644 --- a/packages/backend/src/server/api/stream/channels/antenna.ts +++ b/packages/backend/src/server/api/stream/channels/antenna.ts @@ -51,7 +51,7 @@ class AntennaChannel extends Channel { if (this.isNoteMutedOrBlocked(note)) return; - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else { diff --git a/packages/backend/src/server/api/stream/channels/channel.ts b/packages/backend/src/server/api/stream/channels/channel.ts index e3e24e9d2d55..4edfc824d8cb 100644 --- a/packages/backend/src/server/api/stream/channels/channel.ts +++ b/packages/backend/src/server/api/stream/channels/channel.ts @@ -57,7 +57,7 @@ class ChannelChannel extends Channel { } } - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else { diff --git a/packages/backend/src/server/api/stream/channels/global-timeline.ts b/packages/backend/src/server/api/stream/channels/global-timeline.ts index 8e5060b1d8d7..e142210a6809 100644 --- a/packages/backend/src/server/api/stream/channels/global-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/global-timeline.ts @@ -87,7 +87,7 @@ class GlobalTimelineChannel extends Channel { } } - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else { diff --git a/packages/backend/src/server/api/stream/channels/home-timeline.ts b/packages/backend/src/server/api/stream/channels/home-timeline.ts index fc37b10b7238..cd4605cb3bed 100644 --- a/packages/backend/src/server/api/stream/channels/home-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/home-timeline.ts @@ -91,7 +91,7 @@ class HomeTimelineChannel extends Channel { } } - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else { diff --git a/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts b/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts index 407d98dc625e..6a79875068c0 100644 --- a/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/hybrid-timeline.ts @@ -105,7 +105,7 @@ class HybridTimelineChannel extends Channel { } } - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else { diff --git a/packages/backend/src/server/api/stream/channels/local-timeline.ts b/packages/backend/src/server/api/stream/channels/local-timeline.ts index 0dfc7e881407..6902dde1ac54 100644 --- a/packages/backend/src/server/api/stream/channels/local-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/local-timeline.ts @@ -90,7 +90,7 @@ class LocalTimelineChannel extends Channel { } } - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else { diff --git a/packages/backend/src/server/api/stream/channels/role-timeline.ts b/packages/backend/src/server/api/stream/channels/role-timeline.ts index b746227cef1a..adf7e01ba74e 100644 --- a/packages/backend/src/server/api/stream/channels/role-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/role-timeline.ts @@ -73,7 +73,7 @@ class RoleTimelineChannel extends Channel { } } - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else { diff --git a/packages/backend/src/server/api/stream/channels/user-list.ts b/packages/backend/src/server/api/stream/channels/user-list.ts index d78906964e18..e54b28da7eb6 100644 --- a/packages/backend/src/server/api/stream/channels/user-list.ts +++ b/packages/backend/src/server/api/stream/channels/user-list.ts @@ -130,7 +130,7 @@ class UserListChannel extends Channel { } } - if (this.idOnly && !["followers", "specified"].includes(note.visibility)) { + if (this.idOnly && ['public', 'home'].includes(note.visibility)) { const idOnlyNote = { id: note.id, idOnly: true }; this.send("note", idOnlyNote); } else {