From 44fcdca06ad45191b1b465eb27791a1f546e87b5 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 17 Mar 2023 14:41:04 -0500 Subject: Fix to 'new posts' poll --- src/state/models/feed-view.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit 1.4.1