Fix bug in checking for latest

zio/stable
Paul Frazee 2023-03-21 13:51:27 -05:00
parent eab855ffff
commit 48e18662f6
1 changed files with 1 additions and 6 deletions

View File

@ -491,15 +491,10 @@ export class FeedModel {
}
const res = await this._getFeed({limit: 1})
const currentLatestUri = this.pollCursor
const slices = this.tuner.tune(res.data.feed, this.feedTuners)
const item = slices[0]?.rootItem
const item = res.data.feed?.[0]
if (!item) {
return
}
if (item.reply) {
// TEMPORARY ignore replies
return
}
if (AppBskyFeedFeedViewPost.isReasonRepost(item.reason)) {
if (item.reason.by.did === this.rootStore.me.did) {
return // ignore reposts by the user