diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 10:58:51 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 10:58:51 -0600 |
commit | 050df83db7d83252c0ab5c7e6b0c531d003640d0 (patch) | |
tree | c35be38ee5f7cc4ea6133f120c9033c2a3040fad | |
parent | e5ec07b919df97b44294e9bd7954ad244ee149d4 (diff) | |
download | voidsky-050df83db7d83252c0ab5c7e6b0c531d003640d0.tar.zst |
Fix an issue that caused the feed to rearrange on loadmore
-rw-r--r-- | src/state/models/feed-view.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index 5f8fc98fe..5697108a1 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -439,6 +439,7 @@ export class FeedModel { ) { this.loadMoreCursor = res.data.cursor this.hasMore = !!this.loadMoreCursor + const orgLen = this.feed.length const reorgedFeed = preprocessFeed(res.data.feed) @@ -458,7 +459,7 @@ export class FeedModel { this.feed = this.feed.concat(toAppend) } dedupReposts(this.feed) - dedupParents(this.feed) + dedupParents(this.feed.slice(orgLen)) // we slice to avoid modifying rendering of already-shown posts }) } |