From 78de769d819655193e5bd7160567f60c17b9cf55 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 19 Feb 2026 07:22:32 +0900 Subject: [PATCH] fix social-app ios patch langs --- ...ocial-app-ios-disable-external-services.patch | 14 +++++--------- .../027-social-app-ios-remove-birthdate.patch | 16 ++++++++-------- .../038-social-app-ios-profile-services.patch | 3 +-- ios/patching/042-social-app-ios-at-links.patch | 2 +- 4 files changed, 15 insertions(+), 20 deletions(-) diff --git a/ios/patching/024-social-app-ios-disable-external-services.patch b/ios/patching/024-social-app-ios-disable-external-services.patch index ba4e4a3..47c7739 100644 --- a/ios/patching/024-social-app-ios-disable-external-services.patch +++ b/ios/patching/024-social-app-ios-disable-external-services.patch @@ -1,12 +1,6 @@ -diff --git a/src/env/common.ts b/src/env/common.ts -index 04e98c49c..a4ee47932 100644 --- a/src/env/common.ts +++ b/src/env/common.ts -@@ -107,19 +107,17 @@ export const GCP_PROJECT_ID: number = - /** - * URLs for the app config web worker. Can be a - * locally running server, see `env.example` for more. -+ * Disabled for self-hosted environment to avoid CORS errors +@@ -128,9 +128,7 @@ */ export const GEOLOCATION_DEV_URL = process.env.GEOLOCATION_DEV_URL export const GEOLOCATION_PROD_URL = `https://ip.bsky.app` @@ -17,8 +11,7 @@ index 04e98c49c..a4ee47932 100644 /** * URLs for the live-event config web worker. Can be a - * locally running server, see `env.example` for more. -+ * Disabled for self-hosted environment +@@ -138,9 +136,7 @@ */ export const LIVE_EVENTS_DEV_URL = process.env.LIVE_EVENTS_DEV_URL export const LIVE_EVENTS_PROD_URL = `https://live-events.workers.bsky.app` @@ -26,3 +19,6 @@ index 04e98c49c..a4ee47932 100644 - ? (LIVE_EVENTS_DEV_URL ?? LIVE_EVENTS_PROD_URL) - : LIVE_EVENTS_PROD_URL +export const LIVE_EVENTS_URL = null + + /** + * URLs for the app-config web worker. Can be a diff --git a/ios/patching/027-social-app-ios-remove-birthdate.patch b/ios/patching/027-social-app-ios-remove-birthdate.patch index 3ddfc77..baa438c 100644 --- a/ios/patching/027-social-app-ios-remove-birthdate.patch +++ b/ios/patching/027-social-app-ios-remove-birthdate.patch @@ -125,15 +125,15 @@ - - - {!isOverAppMinAccessAge ? ( -- -- You must be {MIN_ACCESS_AGE} years of age or older -- to create an account. -- +- - ) : ( -- -- You must be {aaRegionConfig.minAccessAge} years of -- age or older to create an account in your region. -- +- - )} - - {IS_NATIVE && diff --git a/ios/patching/038-social-app-ios-profile-services.patch b/ios/patching/038-social-app-ios-profile-services.patch index d9064ac..df8412a 100644 --- a/ios/patching/038-social-app-ios-profile-services.patch +++ b/ios/patching/038-social-app-ios-profile-services.patch @@ -7,13 +7,12 @@ import { type AppBskyActorDefs, moderateProfile, -@@ -9,9 +9,11 @@ +@@ -9,8 +9,10 @@ } from '@atproto/api' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {useQuery} from '@tanstack/react-query' - import {useActorStatus} from '#/lib/actor-status' import {useHaptics} from '#/lib/haptics' +import {useOpenLink} from '#/lib/hooks/useOpenLink' import {sanitizeDisplayName} from '#/lib/strings/display-names' diff --git a/ios/patching/042-social-app-ios-at-links.patch b/ios/patching/042-social-app-ios-at-links.patch index 99fbddd..54df0f6 100644 --- a/ios/patching/042-social-app-ios-at-links.patch +++ b/ios/patching/042-social-app-ios-at-links.patch @@ -8,7 +8,7 @@ import {ProfileHeaderSuggestedFollows} from './SuggestedFollows' const SERVICE_FAVICONS: Record = { -@@ -231,6 +232,7 @@ +@@ -251,6 +252,7 @@