From e82def7dadd7b96e930fc0f3e09bb6c768100da8 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 6 Oct 2025 10:34:05 +0200 Subject: [PATCH] [Glitch] Split `timeline_preview` setting into more granular settings Port 2d2c525097587c5fbb22813ae83612274bccca20 to glitch-soc Signed-off-by: Claire --- .../glitch/features/firehose/index.jsx | 26 ++++++++++--------- .../features/navigation_panel/index.tsx | 13 +++++++--- .../flavours/glitch/initial_state.ts | 6 +++-- 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/app/javascript/flavours/glitch/features/firehose/index.jsx b/app/javascript/flavours/glitch/features/firehose/index.jsx index 84b87b8b2a..c724cc1c08 100644 --- a/app/javascript/flavours/glitch/features/firehose/index.jsx +++ b/app/javascript/flavours/glitch/features/firehose/index.jsx @@ -14,7 +14,7 @@ import { connectPublicStream, connectCommunityStream } from 'flavours/glitch/act import { expandPublicTimeline, expandCommunityTimeline } from 'flavours/glitch/actions/timelines'; import { DismissableBanner } from 'flavours/glitch/components/dismissable_banner'; import SettingText from 'flavours/glitch/components/setting_text'; -import { domain } from 'flavours/glitch/initial_state'; +import { localLiveFeedAccess, remoteLiveFeedAccess, me, domain } from 'flavours/glitch/initial_state'; import { useAppDispatch, useAppSelector } from 'flavours/glitch/store'; import Column from '../../components/column'; @@ -191,19 +191,21 @@ const Firehose = ({ feedType, multiColumn }) => { -
- - - + {(signedIn || (localLiveFeedAccess === 'public' && remoteLiveFeedAccess === 'public')) && ( +
+ + + - - - + + + - - - -
+ + + +
+ )} = ({ /> )} - {(signedIn || timelinePreview) && ( + {(signedIn || + localLiveFeedAccess === 'public' || + remoteLiveFeedAccess === 'public') && (