80 lines
3.2 KiB
Diff
80 lines
3.2 KiB
Diff
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
|
|
index 231447b4f..33c51cc0a 100644
|
|
--- a/src/lib/constants.ts
|
|
+++ b/src/lib/constants.ts
|
|
@@ -7,12 +7,12 @@ import {BLUESKY_PROXY_DID, CHAT_PROXY_DID} from '#/env'
|
|
export const LOCAL_DEV_SERVICE =
|
|
Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583'
|
|
export const STAGING_SERVICE = 'https://staging.bsky.dev'
|
|
-export const BSKY_SERVICE = 'https://bsky.social'
|
|
-export const BSKY_SERVICE_DID = 'did:web:bsky.social'
|
|
-export const PUBLIC_BSKY_SERVICE = 'https://public.api.bsky.app'
|
|
+export const BSKY_SERVICE = 'https://syu.is'
|
|
+export const BSKY_SERVICE_DID = 'did:web:syu.is'
|
|
+export const PUBLIC_BSKY_SERVICE = 'https://bsky.syu.is'
|
|
export const DEFAULT_SERVICE = BSKY_SERVICE
|
|
-const HELP_DESK_LANG = 'en-us'
|
|
-export const HELP_DESK_URL = `https://blueskyweb.zendesk.com/hc/${HELP_DESK_LANG}`
|
|
+const HELP_DESK_LANG = 'ja-jp'
|
|
+export const HELP_DESK_URL = 'https://syu.is/about/support/help'
|
|
export const EMBED_SERVICE = 'https://embed.bsky.app'
|
|
export const EMBED_SCRIPT = `${EMBED_SERVICE}/static/embed.js`
|
|
export const BSKY_DOWNLOAD_URL = 'https://bsky.app/download'
|
|
@@ -209,8 +209,8 @@ export const urls = {
|
|
},
|
|
}
|
|
|
|
-export const PUBLIC_APPVIEW = 'https://api.bsky.app'
|
|
-export const PUBLIC_APPVIEW_DID = 'did:web:api.bsky.app'
|
|
+export const PUBLIC_APPVIEW = 'https://bsky.syu.is'
|
|
+export const PUBLIC_APPVIEW_DID = 'did:web:bsky.syu.is'
|
|
export const PUBLIC_STAGING_APPVIEW_DID = 'did:web:api.staging.bsky.dev'
|
|
|
|
export const DEV_ENV_APPVIEW = `http://localhost:2584` // always the same
|
|
@@ -236,8 +236,8 @@ export const BLUESKY_MOD_SERVICE_HEADERS = {
|
|
}
|
|
|
|
export const webLinks = {
|
|
- tos: `https://bsky.social/about/support/tos`,
|
|
- privacy: `https://bsky.social/about/support/privacy-policy`,
|
|
+ tos: `https://syu.is/about/support/tos`,
|
|
+ privacy: `https://syu.is/about/support/privacy-policy`,
|
|
community: `https://bsky.social/about/support/community-guidelines`,
|
|
communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`,
|
|
}
|
|
diff --git a/src/lib/statsig/statsig.tsx b/src/lib/statsig/statsig.tsx
|
|
index 860e841eb..a595b0868 100644
|
|
--- a/src/lib/statsig/statsig.tsx
|
|
+++ b/src/lib/statsig/statsig.tsx
|
|
@@ -265,6 +265,7 @@ export async function tryFetchGates(
|
|
}
|
|
|
|
export function initialize() {
|
|
+ if (!SDK_KEY) return Promise.resolve()
|
|
return Statsig.initialize(SDK_KEY, null, createStatsigOptions([]))
|
|
}
|
|
|
|
@@ -309,6 +310,9 @@ export function Provider({children}: {children: React.ReactNode}) {
|
|
return () => clearInterval(id)
|
|
}, [handleIntervalTick])
|
|
|
|
+ if (!SDK_KEY) {
|
|
+ return <GateCache.Provider value={gateCache}>{children}</GateCache.Provider>
|
|
+ }
|
|
return (
|
|
<GateCache.Provider value={gateCache}>
|
|
<StatsigProvider
|
|
diff --git a/src/lib/strings/url-helpers.ts b/src/lib/strings/url-helpers.ts
|
|
index 6088e2806..7c903763d 100644
|
|
--- a/src/lib/strings/url-helpers.ts
|
|
+++ b/src/lib/strings/url-helpers.ts
|
|
@@ -53,7 +53,7 @@ export function toNiceDomain(url: string): string {
|
|
try {
|
|
const urlp = new URL(url)
|
|
if (`https://${urlp.host}` === BSKY_SERVICE) {
|
|
- return 'Bluesky Social'
|
|
+ return 'syu.is'
|
|
}
|
|
return urlp.host ? urlp.host : url
|
|
} catch (e) {
|