Fix bug in checking for latest
parent
eab855ffff
commit
48e18662f6
|
@ -491,15 +491,10 @@ 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 slices = this.tuner.tune(res.data.feed, this.feedTuners)
|
const item = res.data.feed?.[0]
|
||||||
const item = slices[0]?.rootItem
|
|
||||||
if (!item) {
|
if (!item) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (item.reply) {
|
|
||||||
// TEMPORARY ignore replies
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (AppBskyFeedFeedViewPost.isReasonRepost(item.reason)) {
|
if (AppBskyFeedFeedViewPost.isReasonRepost(item.reason)) {
|
||||||
if (item.reason.by.did === this.rootStore.me.did) {
|
if (item.reason.by.did === this.rootStore.me.did) {
|
||||||
return // ignore reposts by the user
|
return // ignore reposts by the user
|
||||||
|
|
Loading…
Reference in New Issue