diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-07-23 19:52:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-23 11:52:38 -0500 |
commit | 8fdcc3ee31aefae91ce5552c3aa74bfb867893ac (patch) | |
tree | d9cdf9186300f7e25c04cb9161be25744fb16850 /src/lib | |
parent | b4938bc9df3cc9bd2588ab0e34fd8cfda095c797 (diff) | |
download | voidsky-8fdcc3ee31aefae91ce5552c3aa74bfb867893ac.tar.zst |
Replace `resumeSession` with `getSession` in the email check (#8670)
* replace resumeSession with getSession * copy lil type tweak from the other PR * Add partialRefreshSession to session API context, use session state to infer state further down tree * Review --------- Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/api/feed/home.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/api/feed/home.ts b/src/lib/api/feed/home.ts index e6bc45bea..7a0d72d91 100644 --- a/src/lib/api/feed/home.ts +++ b/src/lib/api/feed/home.ts @@ -1,9 +1,9 @@ -import {AppBskyFeedDefs, BskyAgent} from '@atproto/api' +import {type AppBskyFeedDefs, type BskyAgent} from '@atproto/api' import {PROD_DEFAULT_FEED} from '#/lib/constants' import {CustomFeedAPI} from './custom' import {FollowingFeedAPI} from './following' -import {FeedAPI, FeedAPIResponse} from './types' +import {type FeedAPI, type FeedAPIResponse} from './types' // HACK // the feed API does not include any facilities for passing down @@ -93,7 +93,7 @@ export class HomeFeedAPI implements FeedAPI { } } - if (this.usingDiscover) { + if (this.usingDiscover && !__DEV__) { const res = await this.discover.fetch({cursor, limit}) returnCursor = res.cursor posts = posts.concat(res.feed) |