diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-17 14:41:04 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-03-17 14:41:04 -0500 |
commit | 44fcdca06ad45191b1b465eb27791a1f546e87b5 (patch) | |
tree | 99675ea382e3ced7c6b470d0a3d79819da5cd730 | |
parent | c3ed0dc44cf36d1f2275735f7c69ac010c5ecff8 (diff) | |
download | voidsky-44fcdca06ad45191b1b465eb27791a1f546e87b5.tar.zst |
Fix to 'new posts' poll
-rw-r--r-- | src/state/models/feed-view.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index 81760132e..a62dbc983 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -476,7 +476,13 @@ export class FeedModel { } const res = await this._getFeed({limit: 1}) const currentLatestUri = this.pollCursor - const item = res.data.feed[0] + const slices = this.tuner.tune( + res.data.feed, + this.feedType === 'home' + ? [FeedTuner.dedupReposts, FeedTuner.likedRepliesOnly] + : [], + ) + const item = slices[0]?.rootItem if (!item) { return } |