Fix to 'new posts' poll
This commit is contained in:
parent
c3ed0dc44c
commit
44fcdca06a
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue