Use new filter for Posts tab on profile (#2150)

* Use new filter for Posts tab on profile

* Update deps

* Remove log
This commit is contained in:
Eric Bailey 2023-12-08 18:29:53 -06:00 committed by GitHub
parent e1b1720cad
commit 9c0c18d5d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 35 additions and 117 deletions

View file

@ -40,7 +40,7 @@ export class AuthorFeedAPI implements FeedAPI {
}
_filter(feed: AppBskyFeedDefs.FeedViewPost[]) {
if (this.params.filter === 'posts_no_replies') {
if (this.params.filter === 'posts_and_author_threads') {
return feed.filter(post => {
const isReply = post.reply
const isRepost = AppBskyFeedDefs.isReasonRepost(post.reason)