about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-17 14:41:04 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-03-17 14:41:04 -0500
commit44fcdca06ad45191b1b465eb27791a1f546e87b5 (patch)
tree99675ea382e3ced7c6b470d0a3d79819da5cd730
parentc3ed0dc44cf36d1f2275735f7c69ac010c5ecff8 (diff)
downloadvoidsky-44fcdca06ad45191b1b465eb27791a1f546e87b5.tar.zst
Fix to 'new posts' poll
-rw-r--r--src/state/models/feed-view.ts8
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
     }