diff options
author | dan <dan.abramov@gmail.com> | 2024-09-04 14:42:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-04 15:42:22 +0200 |
commit | e2a244b99889743a8788b0c464d3e150bc8047ad (patch) | |
tree | b2f8ed1f0f071defad6fc82e222845d23e9341e9 /src/lib/api/feed-manip.ts | |
parent | 8860890a8588bc3768a5146abee9510127cc70ed (diff) | |
download | voidsky-e2a244b99889743a8788b0c464d3e150bc8047ad.tar.zst |
Disable in-thread deduping for reposted replies (#5135)
Diffstat (limited to 'src/lib/api/feed-manip.ts')
-rw-r--r-- | src/lib/api/feed-manip.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts index d81f250b8..eaa760b4b 100644 --- a/src/lib/api/feed-manip.ts +++ b/src/lib/api/feed-manip.ts @@ -271,7 +271,12 @@ export class FeedTuner { } } else { if (!dryRun) { - this.seenUris.add(item.post.uri) + // 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) + } } } } |