ai/at
1
0

fix(patch): curl URL delimiter bug, add DM grapheme limit patch

This commit is contained in:
2026-03-24 18:03:53 +09:00
parent fde5046b22
commit 3852e783aa
4 changed files with 19 additions and 6 deletions

View File

@@ -4,3 +4,4 @@ DB_PATH=/data/chat.db
DID_HOST=bsky.syu.is DID_HOST=bsky.syu.is
SERVICE_URL=https://bsky.syu.is SERVICE_URL=https://bsky.syu.is
CHAT_DOMAIN=bsky.chat CHAT_DOMAIN=bsky.chat
APPVIEW_URL=https://bsky.syu.is

View File

@@ -65,8 +65,8 @@ typeset -a FAILED_PATCHES
# Patch file lists # Patch file lists
typeset -a PATCH_FILES_CURL typeset -a PATCH_FILES_CURL
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-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-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 typeset -a PATCH_FILES
@@ -258,10 +258,10 @@ function patch-apply-with-curl() {
function at-repos-patch-apply-all() { function at-repos-patch-apply-all() {
# Apply curl patches # Apply curl patches
for patch_info in "${PATCH_FILES_CURL[@]}"; do for patch_info in "${PATCH_FILES_CURL[@]}"; do
local filename="${patch_info%%:*}" local filename="${patch_info%%|*}"
local rest="${patch_info#*:}" local rest="${patch_info#*|}"
local download_url="${rest%%:*}" local download_url="${rest%%|*}"
local download_target="${rest#*:}" local download_target="${rest#*|}"
local title="${filename%.*}" local title="${filename%.*}"
local repo="" local repo=""

View File

@@ -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

View File

@@ -48,6 +48,7 @@ PATCH_FILES_IOS=(
"045-social-app-ios-composer-cancel.patch" "045-social-app-ios-composer-cancel.patch"
"046-social-app-ios-null-url-guards.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) "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() { function ios-env() {