Skip to content

Commit

Permalink
Remove reposts from the Replies tab (#4669)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Jun 27, 2024
1 parent 5810237 commit d26928a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/state/preferences/feed-tuners.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d26928a

Please sign in to comment.