diff options
author | Caidan Williams <caidan@internet.dev> | 2025-09-02 15:48:28 -0700 |
---|---|---|
committer | Caidan Williams <caidan@internet.dev> | 2025-09-02 15:48:28 -0700 |
commit | b2ecaf9aa7b3404fa4a1c0841eaa113112dcd467 (patch) | |
tree | a188e3aa04c7b2612b42ac95e8441d286ba6d800 | |
parent | 01c466a2134e4db475f7dfc0323106c2d0d3e827 (diff) | |
download | voidsky-b2ecaf9aa7b3404fa4a1c0841eaa113112dcd467.tar.zst |
fix(feed): only include pins for author threads filter
Previously, pins were included for both 'posts_with_replies' and 'posts_and_author_threads' filters. This change restricts pin inclusion to only the 'posts_and_author_threads' filter, ensuring correct feed behavior and reducing unnecessary data in other filter modes.
-rw-r--r-- | src/lib/api/feed/author.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/api/feed/author.ts b/src/lib/api/feed/author.ts index 36cce71f0..cc19f0f7a 100644 --- a/src/lib/api/feed/author.ts +++ b/src/lib/api/feed/author.ts @@ -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 } |