Fix feed pagination on user profiles
This commit is contained in:
parent
b4ad0cff4b
commit
cb5a575bc8
7 changed files with 12 additions and 9 deletions
|
@ -17,6 +17,7 @@ export class FeedViewItemModel implements GetFeedView.FeedItem {
|
|||
_reactKey: string = ''
|
||||
|
||||
// data
|
||||
cursor: string = ''
|
||||
uri: string = ''
|
||||
author: GetFeedView.User = {did: '', name: '', displayName: ''}
|
||||
repostedBy?: GetFeedView.User
|
||||
|
@ -42,6 +43,7 @@ export class FeedViewItemModel implements GetFeedView.FeedItem {
|
|||
}
|
||||
|
||||
copy(v: GetFeedView.FeedItem) {
|
||||
this.cursor = v.cursor
|
||||
this.uri = v.uri
|
||||
this.author = v.author
|
||||
this.repostedBy = v.repostedBy
|
||||
|
@ -145,7 +147,7 @@ export class FeedViewModel {
|
|||
|
||||
get loadMoreCursor() {
|
||||
if (this.hasContent) {
|
||||
return this.feed[this.feed.length - 1].indexedAt
|
||||
return this.feed[this.feed.length - 1].cursor
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue