From cd902b7fd451ed035b716f088feb49f258ff12b4 Mon Sep 17 00:00:00 2001 From: Plastikmensch Date: Mon, 3 Jul 2023 07:00:38 +0200 Subject: [PATCH] Fix showing local only toots in "All" (#2265) * Fix warnings about missing dependency in hooks Signed-off-by: Plastikmensch * Add `allowLocalOnly` to timelineId Without this local-only toots will never be loaded. feedType is checked to be public to not show local-only toots in the "Remote" tab. Signed-off-by: Plastikmensch --------- Signed-off-by: Plastikmensch --- app/javascript/flavours/glitch/features/firehose/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/flavours/glitch/features/firehose/index.jsx b/app/javascript/flavours/glitch/features/firehose/index.jsx index 9db45a0e47..6510ee7a7b 100644 --- a/app/javascript/flavours/glitch/features/firehose/index.jsx +++ b/app/javascript/flavours/glitch/features/firehose/index.jsx @@ -102,7 +102,7 @@ const Firehose = ({ feedType, multiColumn }) => { break; } }, - [dispatch, onlyMedia, feedType], + [dispatch, onlyMedia, allowLocalOnly, feedType], ); const handleHeaderClick = useCallback(() => columnRef.current?.scrollTop(), []); @@ -132,7 +132,7 @@ const Firehose = ({ feedType, multiColumn }) => { } return () => disconnect?.(); - }, [dispatch, signedIn, feedType, onlyMedia]); + }, [dispatch, signedIn, feedType, onlyMedia, allowLocalOnly]); const prependBanner = feedType === 'community' ? ( @@ -193,7 +193,7 @@ const Firehose = ({ feedType, multiColumn }) => {