Skip to content

Commit e2a244b

Browse files
authored
Disable in-thread deduping for reposted replies (#5135)
1 parent 8860890 commit e2a244b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/api/feed-manip.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,12 @@ export class FeedTuner {
271271
}
272272
} else {
273273
if (!dryRun) {
274-
this.seenUris.add(item.post.uri)
274+
// Reposting a reply elevates it to top-level, so its parent/root won't be displayed.
275+
// Disable in-thread dedupe for this case since we don't want to miss them later.
276+
const disableDedupe = slice.isReply && slice.isRepost
277+
if (!disableDedupe) {
278+
this.seenUris.add(item.post.uri)
279+
}
275280
}
276281
}
277282
}

0 commit comments

Comments
 (0)