Disable in-thread deduping for reposted replies (#5135)

zio/stable
dan 2024-09-04 14:42:22 +01:00 committed by GitHub
parent 8860890a85
commit e2a244b998
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -271,10 +271,15 @@ export class FeedTuner {
}
} else {
if (!dryRun) {
// Reposting a reply elevates it to top-level, so its parent/root won't be displayed.
// Disable in-thread dedupe for this case since we don't want to miss them later.
const disableDedupe = slice.isReply && slice.isRepost
if (!disableDedupe) {
this.seenUris.add(item.post.uri)
}
}
}
}
if (!dryRun) {
this.seenKeys.add(slice._reactKey)
}