From 3852e783aabb5ec62a063da077e7874c4e0b173a Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 24 Mar 2026 18:03:53 +0900 Subject: [PATCH] fix(patch): curl URL delimiter bug, add DM grapheme limit patch --- envs/chat | 1 + install.zsh | 12 ++++++------ .../048-social-app-ios-dm-grapheme-limit.patch | 11 +++++++++++ ios/setup.zsh | 1 + 4 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 ios/patching/048-social-app-ios-dm-grapheme-limit.patch diff --git a/envs/chat b/envs/chat index 42aca80..8c08fa4 100644 --- a/envs/chat +++ b/envs/chat @@ -4,3 +4,4 @@ DB_PATH=/data/chat.db DID_HOST=bsky.syu.is SERVICE_URL=https://bsky.syu.is CHAT_DOMAIN=bsky.chat +APPVIEW_URL=https://bsky.syu.is diff --git a/install.zsh b/install.zsh index a0e2e90..c30fc5b 100755 --- a/install.zsh +++ b/install.zsh @@ -65,8 +65,8 @@ typeset -a FAILED_PATCHES # Patch file lists typeset -a PATCH_FILES_CURL PATCH_FILES_CURL=( - "4367-atproto-services-bsky-api.diff:https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/bsky/api.js:services/bsky/api.js" - "4367-atproto-services-pds-index.diff:https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/pds/index.js:services/pds/index.js" + "4367-atproto-services-bsky-api.diff|https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/bsky/api.js|services/bsky/api.js" + "4367-atproto-services-pds-index.diff|https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/services/pds/index.js|services/pds/index.js" ) typeset -a PATCH_FILES @@ -258,10 +258,10 @@ function patch-apply-with-curl() { function at-repos-patch-apply-all() { # Apply curl patches for patch_info in "${PATCH_FILES_CURL[@]}"; do - local filename="${patch_info%%:*}" - local rest="${patch_info#*:}" - local download_url="${rest%%:*}" - local download_target="${rest#*:}" + local filename="${patch_info%%|*}" + local rest="${patch_info#*|}" + local download_url="${rest%%|*}" + local download_target="${rest#*|}" local title="${filename%.*}" local repo="" diff --git a/ios/patching/048-social-app-ios-dm-grapheme-limit.patch b/ios/patching/048-social-app-ios-dm-grapheme-limit.patch new file mode 100644 index 0000000..62814d2 --- /dev/null +++ b/ios/patching/048-social-app-ios-dm-grapheme-limit.patch @@ -0,0 +1,11 @@ +--- a/src/lib/constants.ts ++++ b/src/lib/constants.ts +@@ -64,7 +64,7 @@ + + export const MAX_DRAFT_GRAPHEME_LENGTH = 1000 + +-export const MAX_DM_GRAPHEME_LENGTH = 1000 ++export const MAX_DM_GRAPHEME_LENGTH = 10000 + + // Recommended is 100 per: https://www.w3.org/WAI/GL/WCAG20/tests/test3.html + // but increasing limit per user feedback diff --git a/ios/setup.zsh b/ios/setup.zsh index 8facb10..672d51c 100755 --- a/ios/setup.zsh +++ b/ios/setup.zsh @@ -48,6 +48,7 @@ PATCH_FILES_IOS=( "045-social-app-ios-composer-cancel.patch" "046-social-app-ios-null-url-guards.patch" "047-social-app-ios-dynamic-service.patch" # Dynamic proxy/notif per account (syu.is vs bsky.social) + "048-social-app-ios-dm-grapheme-limit.patch" ) function ios-env() {