Skip to content

Commit 135f37e

Browse files
authored
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
2 parents 125191f + b2ecaf9 commit 135f37e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/lib/api/feed/author.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {
22
AppBskyFeedDefs,
3-
AppBskyFeedGetAuthorFeed as GetAuthorFeed,
4-
BskyAgent,
3+
type AppBskyFeedGetAuthorFeed as GetAuthorFeed,
4+
type BskyAgent,
55
} from '@atproto/api'
66

7-
import {FeedAPI, FeedAPIResponse} from './types'
7+
import {type FeedAPI, type FeedAPIResponse} from './types'
88

99
export class AuthorFeedAPI implements FeedAPI {
1010
agent: BskyAgent
@@ -23,9 +23,7 @@ export class AuthorFeedAPI implements FeedAPI {
2323

2424
get params() {
2525
const params = {...this._params}
26-
params.includePins =
27-
params.filter === 'posts_with_replies' ||
28-
params.filter === 'posts_and_author_threads'
26+
params.includePins = params.filter === 'posts_and_author_threads'
2927
return params
3028
}
3129

0 commit comments

Comments
 (0)