From d26928a5d85d1cb7b5a9f52abbf1f2b753deb12f Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 27 Jun 2024 18:39:36 +0100 Subject: [PATCH] Remove reposts from the Replies tab (#4669) --- src/state/preferences/feed-tuners.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/state/preferences/feed-tuners.tsx b/src/state/preferences/feed-tuners.tsx index ca0fefe915..7d44515138 100644 --- a/src/state/preferences/feed-tuners.tsx +++ b/src/state/preferences/feed-tuners.tsx @@ -12,6 +12,12 @@ export function useFeedTuners(feedDesc: FeedDescriptor) { const {currentAccount} = useSession() return useMemo(() => { + if (feedDesc.startsWith('author')) { + if (feedDesc.endsWith('|posts_with_replies')) { + // TODO: Do this on the server instead. + return [FeedTuner.removeReposts] + } + } if (feedDesc.startsWith('feedgen')) { return [ FeedTuner.dedupReposts,