diff options
author | dan <dan.abramov@gmail.com> | 2024-06-27 18:39:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-27 18:39:36 +0100 |
commit | d26928a5d85d1cb7b5a9f52abbf1f2b753deb12f (patch) | |
tree | 0a31f653b939d75333f78ccf61afaf116d270238 /src/state/preferences | |
parent | 58102377fd3c9142925a99546ca5efe8906fbdf4 (diff) | |
download | voidsky-d26928a5d85d1cb7b5a9f52abbf1f2b753deb12f.tar.zst |
Remove reposts from the Replies tab (#4669)
Diffstat (limited to 'src/state/preferences')
-rw-r--r-- | src/state/preferences/feed-tuners.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
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, |