From 8fdcc3ee31aefae91ce5552c3aa74bfb867893ac Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 23 Jul 2025 19:52:38 +0300 Subject: 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 --- src/lib/api/feed/home.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/api/feed') 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) -- cgit 1.4.1