@@ -406,14 +406,16 @@ 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 receivedLatestUri = res.data.feed[0]
|
const item = res.data.feed[0]
|
||||||
? res.data.feed[0].post.uri
|
if (!item) {
|
||||||
: undefined
|
return
|
||||||
const hasNewLatest = Boolean(
|
}
|
||||||
receivedLatestUri &&
|
if (AppBskyFeedFeedViewPost.isReasonRepost(item.reason)) {
|
||||||
(this.feed.length === 0 || receivedLatestUri !== currentLatestUri),
|
if (item.reason.by.did === this.rootStore.me.did) {
|
||||||
)
|
return // ignore reposts by the user
|
||||||
this.setHasNewLatest(hasNewLatest)
|
}
|
||||||
|
}
|
||||||
|
this.setHasNewLatest(item.post.uri !== currentLatestUri)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user