diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index 3caa635f7f..41046a4bd9 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -231,7 +231,6 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.enableInfiniteScroll }} {{ i18n.ts.keepScreenOn }} {{ i18n.ts.clickToOpen }} - {{ i18n.ts.showBots }} {{ i18n.ts.disableStreamingTimeline }} {{ i18n.ts.enableHorizontalSwipe }} {{ i18n.ts.alwaysConfirmFollow }} @@ -378,14 +377,6 @@ const limitWidthOfReaction = computed(defaultStore.makeGetterSetter('limitWidthO const collapseRenotes = computed(defaultStore.makeGetterSetter('collapseRenotes')); const collapseNotesRepliedTo = computed(defaultStore.makeGetterSetter('collapseNotesRepliedTo')); const clickToOpen = computed(defaultStore.makeGetterSetter('clickToOpen')); -// copied from src/pages/timeline.vue -const showBots = computed({ - get: () => defaultStore.reactiveState.tl.value.filter.withBots, - set: (newValue) => { - const out = deepMerge({ filter: { withBots: newValue } }, defaultStore.state.tl); - defaultStore.set('tl', out); - }, -}); const collapseFiles = computed(defaultStore.makeGetterSetter('collapseFiles')); const autoloadConversation = computed(defaultStore.makeGetterSetter('autoloadConversation')); const reduceAnimation = computed(defaultStore.makeGetterSetter('animation', v => !v, v => !v)); diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 55e453b38a..cdfdc6fda9 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -17,7 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{ type: 'switch', text: i18n.ts.showRenotes, ref: withRenotes, + }, { + type: 'switch', + text: i18n.ts.showBots, + ref: withBots, }, isBasicTimeline(src.value) && hasWithReplies(src.value) ? { type: 'switch', text: i18n.ts.showRepliesToOthersInTimeline,