ai/at
1
0

fix social-app ios patch feed

This commit is contained in:
2025-12-11 11:48:17 +09:00
parent 744f1d2806
commit 6a02d661fb
6 changed files with 79 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ diff --git a/src/state/queries/feed.ts b/src/state/queries/feed.ts
index de1e92533..3d1566800 100644 index de1e92533..3d1566800 100644
--- a/src/state/queries/feed.ts --- a/src/state/queries/feed.ts
+++ b/src/state/queries/feed.ts +++ b/src/state/queries/feed.ts
@@ -201,14 +201,7 @@ export function useFeedSourceInfoQuery({uri}: {uri: string}) { @@ -201,14 +201,6 @@ export function useFeedSourceInfoQuery({uri}: {uri: string}) {
// for the ones we know need it // for the ones we know need it
// -prf // -prf
export const KNOWN_AUTHED_ONLY_FEEDS = [ export const KNOWN_AUTHED_ONLY_FEEDS = [
@@ -159,9 +159,8 @@ index de1e92533..3d1566800 100644
- 'at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.generator/mutuals', // mutuals, by bluesky - 'at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.generator/mutuals', // mutuals, by bluesky
- 'at://did:plc:q6gjnaw2blty4crticxkmujt/app.bsky.feed.generator/my-followers', // followers, by jaz - 'at://did:plc:q6gjnaw2blty4crticxkmujt/app.bsky.feed.generator/my-followers', // followers, by jaz
- 'at://did:plc:vpkhqolt662uhesyj6nxm7ys/app.bsky.feed.generator/followpics', // the gram, by why - 'at://did:plc:vpkhqolt662uhesyj6nxm7ys/app.bsky.feed.generator/followpics', // the gram, by why
+ 'at://did:plc:6qyecktefllvenje24fcxnie/app.bsky.feed.generator/app', // app feed, by syu.is
] ]
type GetPopularFeedsOptions = {limit?: number; enabled?: boolean} type GetPopularFeedsOptions = {limit?: number; enabled?: boolean}
diff --git a/src/state/queries/preferences/index.ts b/src/state/queries/preferences/index.ts diff --git a/src/state/queries/preferences/index.ts b/src/state/queries/preferences/index.ts
index 0cf6ab546..399e592bc 100644 index 0cf6ab546..399e592bc 100644
@@ -216,3 +215,4 @@ index 620382175..928480da2 100644
style={[a.text_md]}> style={[a.text_md]}>
Discover Discover
</InlineLinkText>{' '} </InlineLinkText>{' '}

View File

@@ -105,7 +105,7 @@ index e058e2883..0f583c915 100644
+ const {data: pinnedFeedInfos} = usePinnedFeedsInfos() + const {data: pinnedFeedInfos} = usePinnedFeedsInfos()
+ +
+ const safePreferences = preferences || { feedViewPrefs: { lab_mergeFeedEnabled: false }, savedFeeds: [] } as any + const safePreferences = preferences || { feedViewPrefs: { lab_mergeFeedEnabled: false }, savedFeeds: [] } as any
+ const safePinnedFeedInfos = pinnedFeedInfos || DEFAULT_PINNED_FEEDS + const safePinnedFeedInfos = DEFAULT_PINNED_FEEDS
React.useEffect(() => { React.useEffect(() => {
if (isWeb && !currentAccount) { if (isWeb && !currentAccount) {

View File

@@ -0,0 +1,30 @@
diff --git a/src/lib/api/feed/custom.ts b/src/lib/api/feed/custom.ts
index 123456789..987654321 100644
--- a/src/lib/api/feed/custom.ts
+++ b/src/lib/api/feed/custom.ts
@@ -6,6 +6,7 @@ import {
jsonStringToLex,
} from '@atproto/api'
+import {PUBLIC_APPVIEW} from '#/lib/constants'
import {
getAppLanguageAsContentLanguage,
getContentLanguages,
@@ -119,7 +120,7 @@ async function loggedOutFetch({
// manually construct fetch call so we can add the `lang` cache-busting param
let res = await fetch(
- `https://api.bsky.app/xrpc/app.bsky.feed.getFeed?feed=${feed}${
+ `${PUBLIC_APPVIEW}/xrpc/app.bsky.feed.getFeed?feed=${encodeURIComponent(feed)}${
cursor ? `&cursor=${cursor}` : ''
}&limit=${limit}&lang=${contentLangs}`,
{
@@ -139,7 +140,7 @@ async function loggedOutFetch({
// no data, try again with language headers removed
res = await fetch(
- `https://api.bsky.app/xrpc/app.bsky.feed.getFeed?feed=${feed}${
+ `${PUBLIC_APPVIEW}/xrpc/app.bsky.feed.getFeed?feed=${encodeURIComponent(feed)}${
cursor ? `&cursor=${cursor}` : ''
}&limit=${limit}`,
{method: 'GET', headers: {'Accept-Language': '', ...labelersHeader}},

View File

@@ -0,0 +1,23 @@
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx
index 123456789..987654321 100644
--- a/src/view/screens/Profile.tsx
+++ b/src/view/screens/Profile.tsx
@@ -218,13 +218,13 @@ function ProfileScreenLoaded({
const showPostsTab = true
const showRepliesTab = hasSession
const showMediaTab = !hasLabeler
- const showVideosTab = !hasLabeler
+ const showVideosTab = false
const showLikesTab = isMe
const feedGenCount = profile.associated?.feedgens || 0
- const showFeedsTab = isMe || feedGenCount > 0
+ const showFeedsTab = false
const starterPackCount = profile.associated?.starterPacks || 0
- const showStarterPacksTab = isMe || starterPackCount > 0
+ const showStarterPacksTab = false
// subtract starterpack count from list count, since starterpacks are a type of list
const listCount = (profile.associated?.lists || 0) - starterPackCount
- const showListsTab = hasSession && (isMe || listCount > 0)
+ const showListsTab = false
const sectionTitles = [

View File

@@ -0,0 +1,19 @@
diff --git a/src/view/com/home/HomeHeader.tsx b/src/view/com/home/HomeHeader.tsx
index 4a2cf881f..0dd8547f7 100644
--- a/src/view/com/home/HomeHeader.tsx
+++ b/src/view/com/home/HomeHeader.tsx
@@ -28,12 +28,8 @@ export function HomeHeader(
}, [feeds, hasSession])
const items = React.useMemo(() => {
- const pinnedNames = feeds.map(f => f.displayName)
- if (!hasPinnedCustom) {
- return pinnedNames.concat('Feeds ✨')
- }
- return pinnedNames
- }, [hasPinnedCustom, feeds])
+ return ['Following']
+ }, [])
const onPressFeedsLink = React.useCallback(() => {
navigation.navigate('Feeds')

View File

@@ -44,6 +44,9 @@ PATCH_FILES_IOS=(
"029-social-app-ios-remove-feeds-discover.patch" "029-social-app-ios-remove-feeds-discover.patch"
"030-social-app-ios-appinfo.patch" "030-social-app-ios-appinfo.patch"
"031-social-app-ios-hide-create-account.patch" "031-social-app-ios-hide-create-account.patch"
"032-social-app-ios-feed-loggedout.patch"
"033-social-app-ios-hide-profile-tabs.patch"
"034-social-app-ios-home-header-no-feeds.patch"
) )
function ios-env() { function ios-env() {