Merge pull request #8962 from internet-development/caidanw/app-1327-remove-pinned-post-from-replies-tab-on-profile
[APP-1327] Remove pinned post from replies tab on profiles
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
AppBskyFeedDefs,
|
||||
AppBskyFeedGetAuthorFeed as GetAuthorFeed,
|
||||
BskyAgent,
|
||||
type AppBskyFeedGetAuthorFeed as GetAuthorFeed,
|
||||
type BskyAgent,
|
||||
} from '@atproto/api'
|
||||
|
||||
import {FeedAPI, FeedAPIResponse} from './types'
|
||||
import {type FeedAPI, type FeedAPIResponse} from './types'
|
||||
|
||||
export class AuthorFeedAPI implements FeedAPI {
|
||||
agent: BskyAgent
|
||||
@@ -23,9 +23,7 @@ export class AuthorFeedAPI implements FeedAPI {
|
||||
|
||||
get params() {
|
||||
const params = {...this._params}
|
||||
params.includePins =
|
||||
params.filter === 'posts_with_replies' ||
|
||||
params.filter === 'posts_and_author_threads'
|
||||
params.includePins = params.filter === 'posts_and_author_threads'
|
||||
return params
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user