diff --git a/ios/patching/002-social-app-ios-lib.patch b/ios/patching/002-social-app-ios-lib.patch index ee04f7b..1c1eb89 100644 --- a/ios/patching/002-social-app-ios-lib.patch +++ b/ios/patching/002-social-app-ios-lib.patch @@ -38,7 +38,7 @@ index 231447b4f..a44b3da05 100644 -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 HELP_DESK_URL = '/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' @@ -102,8 +102,8 @@ index 231447b4f..a44b3da05 100644 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`, ++ tos: `/support/tos`, ++ privacy: `/support/privacy-policy`, community: `https://bsky.social/about/support/community-guidelines`, communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`, } diff --git a/ios/patching/004-social-app-ios-core.patch b/ios/patching/004-social-app-ios-core.patch index c4183f3..73513c9 100644 --- a/ios/patching/004-social-app-ios-core.patch +++ b/ios/patching/004-social-app-ios-core.patch @@ -9,7 +9,7 @@ index 2c4d6fa41..b69e2b18d 100644 -prefetchAgeAssuranceConfig() +// // // prefetchAgeAssuranceConfig() prefetchLiveEvents() - + function InnerApp() { diff --git a/src/routes.ts b/src/routes.ts index f325539c7..3e2c7b3eb 100644 @@ -21,11 +21,11 @@ index f325539c7..3e2c7b3eb 100644 Support: '/support', - PrivacyPolicy: '/support/privacy', - TermsOfService: '/support/tos', -+ PrivacyPolicy: 'https://syu.is/about/support/privacy-policy', -+ TermsOfService: 'https://syu.is/about/support/tos', ++ PrivacyPolicy: ['/support/privacy-policy', '/about/support/privacy-policy'], ++ TermsOfService: ['/support/tos', '/about/support/tos'], CommunityGuidelines: '/support/community-guidelines', -+ License: 'https://syu.is/about/support/license', -+ AppInfo: 'https://syu.is/about/support/app', ++ License: ['/support/license', '/about/support/license'], ++ AppInfo: '/support/app', CopyrightPolicy: '/support/copyright', // hashtags Hashtag: '/hashtag/:tag', @@ -35,41 +35,41 @@ index 5c8ce3b97..ee85beb08 100644 +++ b/src/state/session/agent.ts @@ -47,7 +47,8 @@ export function createPublicAgent() { configureModerationForGuest() // Side effect but only relevant for tests - + const agent = new BskyAppAgent({service: PUBLIC_BSKY_SERVICE}) - agent.configureProxy(BLUESKY_PROXY_HEADER.get()) + // Disable proxy for self-hosted environments + // agent.configureProxy(BLUESKY_PROXY_HEADER.get()) return agent } - + @@ -88,7 +89,8 @@ export async function createAgentAndResume( // after session is attached const aa = prefetchAgeAssuranceData({agent}) - + - agent.configureProxy(BLUESKY_PROXY_HEADER.get()) + // Disable proxy for self-hosted environments + // agent.configureProxy(BLUESKY_PROXY_HEADER.get()) - + return agent.prepare({ resolvers: [gates, moderation, aa], @@ -127,7 +129,8 @@ export async function createAgentAndLogin( const moderation = configureModerationForAccount(agent, account) const aa = prefetchAgeAssuranceData({agent}) - + - agent.configureProxy(BLUESKY_PROXY_HEADER.get()) + // Disable proxy for self-hosted environments + // agent.configureProxy(BLUESKY_PROXY_HEADER.get()) - + return agent.prepare({ resolvers: [gates, moderation, aa], @@ -299,7 +302,8 @@ export async function createAgentAndCreateAccount( logger.error(e, {message: `session: failed snoozeEmailConfirmationPrompt`}) } - + - agent.configureProxy(BLUESKY_PROXY_HEADER.get()) + // Disable proxy for self-hosted environments + // agent.configureProxy(BLUESKY_PROXY_HEADER.get()) - + return agent.prepare({ resolvers: [gates, moderation, aa], diff --git a/ios/patching/005-social-app-ios-screens.patch b/ios/patching/005-social-app-ios-screens.patch index 3998040..6910090 100644 --- a/ios/patching/005-social-app-ios-screens.patch +++ b/ios/patching/005-social-app-ios-screens.patch @@ -1,37 +1,37 @@ diff --git a/src/screens/Settings/AboutSettings.tsx b/src/screens/Settings/AboutSettings.tsx -index 6b8257b91..48ba7909e 100644 +index 9ba067a2f..e34b9f9b0 100644 --- a/src/screens/Settings/AboutSettings.tsx +++ b/src/screens/Settings/AboutSettings.tsx -@@ -78,14 +78,14 @@ export function AboutSettingsScreen({}: Props) { +@@ -78,7 +78,7 @@ export function AboutSettingsScreen({}: Props) { - Terms of Service +@@ -86,7 +86,7 @@ export function AboutSettingsScreen({}: Props) { diff --git a/src/screens/Takendown.tsx b/src/screens/Takendown.tsx -index 77f219e55..53f5e0cc0 100644 +index 660aecf1a..f19a62c0f 100644 --- a/src/screens/Takendown.tsx +++ b/src/screens/Takendown.tsx -@@ -214,10 +214,10 @@ export function Takendown() { +@@ -212,10 +212,10 @@ export function Takendown() { Your account was found to be in violation of the{' '} - Bluesky Social Terms of Service + syu.is Terms of Service @@ -39,10 +39,10 @@ index 77f219e55..53f5e0cc0 100644 . You have been sent an email outlining the specific violation and suspension period, if applicable. You can appeal this diff --git a/src/view/screens/PrivacyPolicy.tsx b/src/view/screens/PrivacyPolicy.tsx -index a89eaadc4..1da393f03 100644 +index a89eaadc4..71ce7c81f 100644 --- a/src/view/screens/PrivacyPolicy.tsx +++ b/src/view/screens/PrivacyPolicy.tsx -@@ -1,52 +1,13 @@ +@@ -1,51 +1,49 @@ import React from 'react' -import {View} from 'react-native' -import {msg, Trans} from '@lingui/macro' @@ -59,7 +59,7 @@ index a89eaadc4..1da393f03 100644 -import {TextLink} from '#/view/com/util/Link' -import {Text} from '#/view/com/util/text/Text' -import {ScrollView} from '#/view/com/util/Views' -+import { WebView } from 'react-native-webview' ++import {ScrollView} from 'react-native' import * as Layout from '#/components/Layout' -import {ViewHeader} from '../com/util/ViewHeader' - @@ -75,9 +75,13 @@ index a89eaadc4..1da393f03 100644 - }, [setMinimalShellMode]), - ) +import {useSetTitle} from '#/lib/hooks/useSetTitle' - ++import {atoms as a, useTheme} from '#/alf' ++import {Text} from '#/components/Typography' ++ +export function PrivacyPolicyScreen() { + useSetTitle('Privacy Policy') ++ const t = useTheme() + return ( - @@ -95,16 +99,47 @@ index a89eaadc4..1da393f03 100644 - - - -- -+ ++ ++ Privacy Policy ++ ++ Data Collection ++ ++ syu.is collects minimal data necessary to provide the service. This includes your account information, posts, and interactions on the AT Protocol network. ++ ++ ++ Data Storage ++ ++ Your data is stored on the AT Protocol network. Posts and profile information are public by default as part of the decentralized social network. ++ ++ ++ Third Parties ++ ++ We do not sell your personal information to third parties. Your data may be visible to other users and services on the AT Protocol network. ++ ++ ++ Contact ++ ++ For privacy-related questions, please contact the administrator. ++ ++ ++ 日本語 ++ ++ syu.isはサービス提供に必要な最小限のデータのみを収集します。投稿やプロフィール情報はAT Protocolネットワーク上で公開されます。個人情報を第三者に販売することはありません。 ++ ++ ++ ++ Last updated: 2025 ++ + ) - } diff --git a/src/view/screens/TermsOfService.tsx b/src/view/screens/TermsOfService.tsx -index d843c713c..b81767bd5 100644 +index d843c713c..c6a36268b 100644 --- a/src/view/screens/TermsOfService.tsx +++ b/src/view/screens/TermsOfService.tsx -@@ -1,50 +1,13 @@ +@@ -1,49 +1,49 @@ import React from 'react' -import {View} from 'react-native' -import {msg, Trans} from '@lingui/macro' @@ -121,7 +156,7 @@ index d843c713c..b81767bd5 100644 -import {TextLink} from '#/view/com/util/Link' -import {Text} from '#/view/com/util/text/Text' -import {ScrollView} from '#/view/com/util/Views' -+import { WebView } from 'react-native-webview' ++import {ScrollView} from 'react-native' import * as Layout from '#/components/Layout' -import {ViewHeader} from '../com/util/ViewHeader' - @@ -137,9 +172,13 @@ index d843c713c..b81767bd5 100644 - }, [setMinimalShellMode]), - ) +import {useSetTitle} from '#/lib/hooks/useSetTitle' - ++import {atoms as a, useTheme} from '#/alf' ++import {Text} from '#/components/Typography' ++ +export function TermsOfServiceScreen() { + useSetTitle('Terms of Service') ++ const t = useTheme() + return ( - @@ -155,8 +194,39 @@ index d843c713c..b81767bd5 100644 - - - -- -+ ++ ++ Terms of Service ++ ++ Acceptance ++ ++ By using syu.is, you agree to these terms. If you do not agree, please do not use the service. ++ ++ ++ Prohibited Content ++ ++ Do not post illegal content, spam, or harass others. Do not impersonate others or spread misinformation. ++ ++ ++ Account Termination ++ ++ The administrator reserves the right to suspend or terminate accounts that violate these terms. ++ ++ ++ Disclaimer ++ ++ This service is provided "as is" without warranty of any kind. ++ ++ ++ 日本語 ++ ++ syu.isを利用することで、これらの利用規約に同意したものとみなします。違法なコンテンツの投稿、スパム、他者への嫌がらせは禁止です。管理者は規約違反のアカウントを停止する権利を有します。本サービスは現状のまま提供され、いかなる保証もありません。 ++ ++ ++ ++ Last updated: 2025 ++ + ) - } diff --git a/ios/patching/006-social-app-ios-shell.patch b/ios/patching/006-social-app-ios-shell.patch index 399df6f..c58d533 100644 --- a/ios/patching/006-social-app-ios-shell.patch +++ b/ios/patching/006-social-app-ios-shell.patch @@ -1,8 +1,8 @@ diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx -index f76147ccf..36b4d7de1 100644 +index 42a5fe417..8e7963512 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx -@@ -292,17 +292,11 @@ let DrawerContent = ({}: React.PropsWithoutRef<{}>): React.ReactNode => { +@@ -294,17 +294,11 @@ let DrawerContent = ({}: React.PropsWithoutRef<{}>): React.ReactNode => { <> @@ -20,7 +20,7 @@ index f76147ccf..36b4d7de1 100644 @@ -39,18 +39,27 @@ index f76147ccf..36b4d7de1 100644 - -+ -+ Linking.openURL('https://syu.is/about/support/license')}> -+ -+ License -+ -+ -+ - - - ) diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx -index 22dd23d7f..7ceb3800e 100644 +index d9185d778..504f521a4 100644 --- a/src/view/com/auth/SplashScreen.web.tsx +++ b/src/view/com/auth/SplashScreen.web.tsx @@ -94,14 +94,6 @@ export const SplashScreen = ({ - - )} + + )} -