fix ios patch
This commit is contained in:
@@ -1,22 +1,22 @@
|
|||||||
diff --git a/src/App.native.tsx b/src/App.native.tsx
|
diff --git a/src/App.native.tsx b/src/App.native.tsx
|
||||||
index fb3008627..539ebc055 100644
|
index 2c4d6fa41..b69e2b18d 100644
|
||||||
--- a/src/App.native.tsx
|
--- a/src/App.native.tsx
|
||||||
+++ b/src/App.native.tsx
|
+++ b/src/App.native.tsx
|
||||||
@@ -92,7 +92,7 @@ if (isAndroid) {
|
@@ -95,7 +95,7 @@ if (isAndroid) {
|
||||||
* Begin geolocation ASAP
|
* Begin geolocation ASAP
|
||||||
*/
|
*/
|
||||||
Geo.resolve()
|
Geo.resolve()
|
||||||
-prefetchAgeAssuranceConfig()
|
-prefetchAgeAssuranceConfig()
|
||||||
+// // // prefetchAgeAssuranceConfig()
|
+// // // prefetchAgeAssuranceConfig()
|
||||||
|
prefetchLiveEvents()
|
||||||
|
|
||||||
function InnerApp() {
|
function InnerApp() {
|
||||||
const [isReady, setIsReady] = React.useState(false)
|
|
||||||
diff --git a/src/routes.ts b/src/routes.ts
|
diff --git a/src/routes.ts b/src/routes.ts
|
||||||
index 1ed913bb2..c80340edb 100644
|
index f325539c7..3e2c7b3eb 100644
|
||||||
--- a/src/routes.ts
|
--- a/src/routes.ts
|
||||||
+++ b/src/routes.ts
|
+++ b/src/routes.ts
|
||||||
@@ -71,8 +71,8 @@ export const router = new Router<AllNavigatableRoutes>({
|
@@ -72,9 +72,11 @@ export const router = new Router<AllNavigatableRoutes>({
|
||||||
MiscellaneousNotificationSettings: '/settings/notifications/miscellaneous',
|
FindContactsSettings: '/settings/find-contacts',
|
||||||
// support
|
// support
|
||||||
Support: '/support',
|
Support: '/support',
|
||||||
- PrivacyPolicy: '/support/privacy',
|
- PrivacyPolicy: '/support/privacy',
|
||||||
@@ -24,8 +24,11 @@ index 1ed913bb2..c80340edb 100644
|
|||||||
+ PrivacyPolicy: 'https://syu.is/about/support/privacy-policy',
|
+ PrivacyPolicy: 'https://syu.is/about/support/privacy-policy',
|
||||||
+ TermsOfService: 'https://syu.is/about/support/tos',
|
+ TermsOfService: 'https://syu.is/about/support/tos',
|
||||||
CommunityGuidelines: '/support/community-guidelines',
|
CommunityGuidelines: '/support/community-guidelines',
|
||||||
|
+ License: 'https://syu.is/about/support/license',
|
||||||
|
+ AppInfo: 'https://syu.is/about/support/app',
|
||||||
CopyrightPolicy: '/support/copyright',
|
CopyrightPolicy: '/support/copyright',
|
||||||
// hashtags
|
// hashtags
|
||||||
|
Hashtag: '/hashtag/:tag',
|
||||||
diff --git a/src/state/session/agent.ts b/src/state/session/agent.ts
|
diff --git a/src/state/session/agent.ts b/src/state/session/agent.ts
|
||||||
index 5c8ce3b97..ee85beb08 100644
|
index 5c8ce3b97..ee85beb08 100644
|
||||||
--- a/src/state/session/agent.ts
|
--- a/src/state/session/agent.ts
|
||||||
|
|||||||
@@ -1,15 +1,28 @@
|
|||||||
diff --git a/src/env/common.ts b/src/env/common.ts
|
diff --git a/src/env/common.ts b/src/env/common.ts
|
||||||
|
index 04e98c49c..a4ee47932 100644
|
||||||
--- a/src/env/common.ts
|
--- a/src/env/common.ts
|
||||||
+++ b/src/env/common.ts
|
+++ b/src/env/common.ts
|
||||||
@@ -107,9 +107,8 @@ export const GCP_PROJECT_ID: number =
|
@@ -107,19 +107,17 @@ export const GCP_PROJECT_ID: number =
|
||||||
/**
|
/**
|
||||||
* URLs for the app config web worker. Can be a
|
* URLs for the app config web worker. Can be a
|
||||||
* locally running server, see `env.example` for more.
|
* locally running server, see `env.example` for more.
|
||||||
+ * Disabled for self-hosted environment to avoid CORS errors
|
+ * Disabled for self-hosted environment to avoid CORS errors
|
||||||
*/
|
*/
|
||||||
export const BAPP_CONFIG_DEV_URL = process.env.BAPP_CONFIG_DEV_URL
|
export const GEOLOCATION_DEV_URL = process.env.GEOLOCATION_DEV_URL
|
||||||
export const BAPP_CONFIG_PROD_URL = `https://ip.bsky.app`
|
export const GEOLOCATION_PROD_URL = `https://ip.bsky.app`
|
||||||
-export const BAPP_CONFIG_URL = IS_DEV
|
-export const GEOLOCATION_URL = IS_DEV
|
||||||
- ? (BAPP_CONFIG_DEV_URL ?? BAPP_CONFIG_PROD_URL)
|
- ? (GEOLOCATION_DEV_URL ?? GEOLOCATION_PROD_URL)
|
||||||
- : BAPP_CONFIG_PROD_URL
|
- : GEOLOCATION_PROD_URL
|
||||||
+export const BAPP_CONFIG_URL = null
|
+export const GEOLOCATION_URL = null
|
||||||
|
|
||||||
|
/**
|
||||||
|
* URLs for the live-event config web worker. Can be a
|
||||||
|
* locally running server, see `env.example` for more.
|
||||||
|
+ * Disabled for self-hosted environment
|
||||||
|
*/
|
||||||
|
export const LIVE_EVENTS_DEV_URL = process.env.LIVE_EVENTS_DEV_URL
|
||||||
|
export const LIVE_EVENTS_PROD_URL = `https://live-events.workers.bsky.app`
|
||||||
|
-export const LIVE_EVENTS_URL = IS_DEV
|
||||||
|
- ? (LIVE_EVENTS_DEV_URL ?? LIVE_EVENTS_PROD_URL)
|
||||||
|
- : LIVE_EVENTS_PROD_URL
|
||||||
|
+export const LIVE_EVENTS_URL = null
|
||||||
|
|||||||
Reference in New Issue
Block a user