Adds profile media tab (#1137)
* add media tab * fix loading state * cleanup * update naming * upgrade api package * fix load state * add scroll view to tabs * fix overflow on mobile web
This commit is contained in:
parent
03d152675e
commit
cc3fcb1645
5 changed files with 109 additions and 65 deletions
|
|
@ -74,24 +74,6 @@ export class PostsFeedModel {
|
|||
return this.hasLoaded && !this.hasContent
|
||||
}
|
||||
|
||||
get nonReplyFeed() {
|
||||
if (this.feedType === 'author') {
|
||||
return this.slices.filter(slice => {
|
||||
const params = this.params as GetAuthorFeed.QueryParams
|
||||
const item = slice.rootItem
|
||||
const isRepost =
|
||||
item?.reasonRepost?.by?.handle === params.actor ||
|
||||
item?.reasonRepost?.by?.did === params.actor
|
||||
const allow =
|
||||
!item.postRecord?.reply || // not a reply
|
||||
isRepost // but allow if it's a repost
|
||||
return allow
|
||||
})
|
||||
} else {
|
||||
return this.slices
|
||||
}
|
||||
}
|
||||
|
||||
setHasNewLatest(v: boolean) {
|
||||
this.hasNewLatest = v
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue