fix(patch): curl URL delimiter bug, add DM grapheme limit patch
This commit is contained in:
@@ -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() {
|
||||
@@ -156,6 +157,20 @@ function ios-patch-apply-all() {
|
||||
local title="${filename%.*}"
|
||||
patch-apply "$title" "$filename"
|
||||
done
|
||||
|
||||
# Patch @atproto/api lexicon: chat.bsky.convo maxGraphemes 1000 -> 10000
|
||||
local api_dir="$target_dir/node_modules/@atproto/api"
|
||||
local patch_file="$d/patching/230-atproto-api-chat-grapheme-limit.patch"
|
||||
if [ -d "$api_dir" ] && [ -f "$patch_file" ]; then
|
||||
if patch -f --dry-run -p1 -d "$api_dir" < "$patch_file" > /dev/null 2>&1; then
|
||||
patch -f -p1 -d "$api_dir" < "$patch_file" > /dev/null 2>&1
|
||||
echo "✅ Patched @atproto/api lexicons.js: chat.bsky.convo maxGraphemes 1000 → 10000"
|
||||
elif patch -f --dry-run -p1 -R -d "$api_dir" < "$patch_file" > /dev/null 2>&1; then
|
||||
echo "✅ @atproto/api lexicons.js: already patched"
|
||||
else
|
||||
echo "❌ @atproto/api lexicons.js: patch failed (upstream may have changed)"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Copy new files that aren't in patches
|
||||
|
||||
Reference in New Issue
Block a user