From d26928a5d85d1cb7b5a9f52abbf1f2b753deb12f Mon Sep 17 00:00:00 2001
From: dan <dan.abramov@gmail.com>
Date: Thu, 27 Jun 2024 18:39:36 +0100
Subject: Remove reposts from the Replies tab (#4669)

---
 src/state/preferences/feed-tuners.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/state/preferences/feed-tuners.tsx')

diff --git a/src/state/preferences/feed-tuners.tsx b/src/state/preferences/feed-tuners.tsx
index ca0fefe91..7d4451513 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,
-- 
cgit 1.4.1

