Remove reposts from the Replies tab (#4669)

zio/stable
dan 2024-06-27 18:39:36 +01:00 committed by GitHub
parent 58102377fd
commit d26928a5d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@ export function useFeedTuners(feedDesc: FeedDescriptor) {
const {currentAccount} = useSession() const {currentAccount} = useSession()
return useMemo(() => { 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')) { if (feedDesc.startsWith('feedgen')) {
return [ return [
FeedTuner.dedupReposts, FeedTuner.dedupReposts,