Remove reposts from the Replies tab (#4669)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user