From 4aff2dd13b6e3ab5b8398fb83ebdc50249c7ce85 Mon Sep 17 00:00:00 2001 From: Zel9278 Date: Sun, 29 Oct 2023 13:44:28 +0900 Subject: [PATCH] remove media timeline --- packages/frontend/src/components/MkTimeline.vue | 11 ----------- packages/frontend/src/pages/timeline.vue | 5 ----- packages/frontend/src/ui/deck/tl-column.vue | 2 -- packages/frontend/src/widgets/WidgetTimeline.vue | 4 ---- 4 files changed, 22 deletions(-) diff --git a/packages/frontend/src/components/MkTimeline.vue b/packages/frontend/src/components/MkTimeline.vue index 8b9426b89e..cdd72febd1 100644 --- a/packages/frontend/src/components/MkTimeline.vue +++ b/packages/frontend/src/components/MkTimeline.vue @@ -101,17 +101,6 @@ if (props.src === 'antenna') { withFiles: props.onlyFiles ? true : undefined, }); connection.on('note', prepend); -} else if (props.src === 'media') { - endpoint = 'notes/hybrid-timeline'; - query = { - withFiles: true, - withReplies: defaultStore.state.showTimelineReplies, - }; - connection = stream.useChannel('hybridTimeline', { - withFiles: true, - withReplies: defaultStore.state.showTimelineReplies, - }); - connection.on('note', prepend); } else if (props.src === 'social') { endpoint = 'notes/hybrid-timeline'; query = { diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 730b65ce85..8cc540779b 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -176,11 +176,6 @@ const headerTabs = $computed(() => [...(defaultStore.reactiveState.pinnedUserLis title: i18n.ts._timelines.local, icon: 'ti ti-planet', iconOnly: true, -}, { - key: 'media', - title: i18n.ts._timelines.media, - icon: 'ti ti-photo', - iconOnly: true, }, { key: 'social', title: i18n.ts._timelines.social, diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue index 25e5774f52..bab93622f0 100644 --- a/packages/frontend/src/ui/deck/tl-column.vue +++ b/packages/frontend/src/ui/deck/tl-column.vue @@ -84,8 +84,6 @@ async function setType() { value: 'home' as const, text: i18n.ts._timelines.home, }, { value: 'local' as const, text: i18n.ts._timelines.local, - }, { - value: 'media' as const, text: i18n.ts._timelines.media, }, { value: 'social' as const, text: i18n.ts._timelines.social, }, { diff --git a/packages/frontend/src/widgets/WidgetTimeline.vue b/packages/frontend/src/widgets/WidgetTimeline.vue index 2bc4e79e32..b8842d7b52 100644 --- a/packages/frontend/src/widgets/WidgetTimeline.vue +++ b/packages/frontend/src/widgets/WidgetTimeline.vue @@ -122,10 +122,6 @@ const choose = async (ev) => { text: i18n.ts._timelines.local, icon: 'ti ti-planet', action: () => { setSrc('local'); }, - }, { - text: i18n.ts._timelines.media, - icon: 'ti ti-photo', - action: () => { setSrc('media'); }, }, { text: i18n.ts._timelines.social, icon: 'ti ti-universe',