Fix to 'new posts' poll

zio/stable
Paul Frazee 2023-03-17 14:41:04 -05:00
parent c3ed0dc44c
commit 44fcdca06a
1 changed files with 7 additions and 1 deletions

View File

@ -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
}