87 lines
2.7 KiB
Diff
87 lines
2.7 KiB
Diff
--- a/src/state/session/agent.ts 2026-03-15 19:17:45
|
|
+++ b/src/state/session/agent.ts 2026-03-15 19:17:18
|
|
@@ -18,6 +18,8 @@
|
|
BLUESKY_PROXY_HEADER,
|
|
BSKY_SERVICE,
|
|
DISCOVER_SAVED_FEED,
|
|
+ getProxyHeader,
|
|
+ isSelfHostedService,
|
|
IS_PROD_SERVICE,
|
|
PUBLIC_BSKY_SERVICE,
|
|
TIMELINE_SAVED_FEED,
|
|
@@ -47,7 +49,9 @@
|
|
configureModerationForGuest() // Side effect but only relevant for tests
|
|
|
|
const agent = new BskyAppAgent({service: PUBLIC_BSKY_SERVICE})
|
|
- agent.configureProxy(BLUESKY_PROXY_HEADER.get())
|
|
+ if (!isSelfHostedService(PUBLIC_BSKY_SERVICE)) {
|
|
+ agent.configureProxy(BLUESKY_PROXY_HEADER.get())
|
|
+ }
|
|
return agent
|
|
}
|
|
|
|
@@ -77,7 +81,9 @@
|
|
// after session is attached
|
|
const aa = prefetchAgeAssuranceData({agent})
|
|
|
|
- agent.configureProxy(BLUESKY_PROXY_HEADER.get())
|
|
+ if (!isSelfHostedService(storedAccount.service)) {
|
|
+ agent.configureProxy(getProxyHeader(storedAccount.service))
|
|
+ }
|
|
|
|
return agent.prepare({
|
|
resolvers: [gates, moderation, aa],
|
|
@@ -116,7 +122,9 @@
|
|
const moderation = configureModerationForAccount(agent, account)
|
|
const aa = prefetchAgeAssuranceData({agent})
|
|
|
|
- agent.configureProxy(BLUESKY_PROXY_HEADER.get())
|
|
+ if (!isSelfHostedService(service)) {
|
|
+ agent.configureProxy(getProxyHeader(service))
|
|
+ }
|
|
|
|
return agent.prepare({
|
|
resolvers: [gates, moderation, aa],
|
|
@@ -288,7 +296,9 @@
|
|
logger.error(e, {message: `session: failed snoozeEmailConfirmationPrompt`})
|
|
}
|
|
|
|
- agent.configureProxy(BLUESKY_PROXY_HEADER.get())
|
|
+ if (!isSelfHostedService(service)) {
|
|
+ agent.configureProxy(getProxyHeader(service))
|
|
+ }
|
|
|
|
return agent.prepare({
|
|
resolvers: [gates, moderation, aa],
|
|
diff --git a/src/App.native.tsx b/src/App.native.tsx
|
|
index 2c4d6fa41..b69e2b18d 100644
|
|
--- a/src/App.native.tsx
|
|
+++ b/src/App.native.tsx
|
|
@@ -95,7 +95,7 @@ if (isAndroid) {
|
|
* Begin geolocation ASAP
|
|
*/
|
|
Geo.resolve()
|
|
-prefetchAgeAssuranceConfig()
|
|
+// // // prefetchAgeAssuranceConfig()
|
|
prefetchLiveEvents()
|
|
|
|
function InnerApp() {
|
|
diff --git a/src/routes.ts b/src/routes.ts
|
|
index f325539c7..3e2c7b3eb 100644
|
|
--- a/src/routes.ts
|
|
+++ b/src/routes.ts
|
|
@@ -72,9 +72,11 @@ export const router = new Router<AllNavigatableRoutes>({
|
|
FindContactsSettings: '/settings/find-contacts',
|
|
// support
|
|
Support: '/support',
|
|
- PrivacyPolicy: '/support/privacy',
|
|
- TermsOfService: '/support/tos',
|
|
+ PrivacyPolicy: ['/support/privacy-policy', '/about/support/privacy-policy'],
|
|
+ TermsOfService: ['/support/tos', '/about/support/tos'],
|
|
CommunityGuidelines: '/support/community-guidelines',
|
|
+ License: ['/support/license', '/about/support/license'],
|
|
+ AppInfo: '/support/app',
|
|
CopyrightPolicy: '/support/copyright',
|
|
// hashtags
|
|
Hashtag: '/hashtag/:tag',
|