Fix to 'new posts' poll
This commit is contained in:
@@ -476,7 +476,13 @@ export class FeedModel {
|
|||||||
}
|
}
|
||||||
const res = await this._getFeed({limit: 1})
|
const res = await this._getFeed({limit: 1})
|
||||||
const currentLatestUri = this.pollCursor
|
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) {
|
if (!item) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user