Skip to content

Commit

Permalink
Only show pins on Posts and Replies (#7544)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Jan 22, 2025
1 parent 9e1cd11 commit 638008c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/api/feed/author.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export class AuthorFeedAPI implements FeedAPI {

get params() {
const params = {...this._params}
params.includePins = params.filter !== 'posts_with_media'
params.includePins =
params.filter === 'posts_with_replies' ||
params.filter === 'posts_and_author_threads'
return params
}

Expand Down

0 comments on commit 638008c

Please sign in to comment.