ai/at
1
0

add bgs patch

This commit is contained in:
2025-12-06 15:09:39 +09:00
parent 9e284d1a18
commit 523805af7c
2 changed files with 21 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ PATCH_FILES=(
"disable-statsig-sdk.diff" "disable-statsig-sdk.diff"
"140-social-app-yarn-network-timeout.patch" "140-social-app-yarn-network-timeout.patch"
"130-atproto-ozone-enable-daemon-v2.patch" "130-atproto-ozone-enable-daemon-v2.patch"
"190-bgs-disable-ratelimit.patch"
) )
function at-repos-clone() { function at-repos-clone() {
@@ -112,8 +113,14 @@ function at-repos-social-app-avatar-write() {
curl -sL https://raw.githubusercontent.com/bluesky-social/social-app/refs/heads/main/src/lib/strings/url-helpers.ts -o $dt/lib/strings/url-helpers.ts curl -sL https://raw.githubusercontent.com/bluesky-social/social-app/refs/heads/main/src/lib/strings/url-helpers.ts -o $dt/lib/strings/url-helpers.ts
sed -i "s#https://go.web.syu.is/redirect?u=\${encodeURIComponent(url)}#\${url}#g" $dt/lib/strings/url-helpers.ts sed -i "s#https://go.web.syu.is/redirect?u=\${encodeURIComponent(url)}#\${url}#g" $dt/lib/strings/url-helpers.ts
grep -R $did_admin .|cut -d : -f 1|sort -u|xargs sed -i "s/${did_admin}/${did}/g" grep -R $did_admin .|cut -d : -f 1|sort -u|xargs sed -i "s/${did_admin}/${did}/g"
# at-repos-social-app-statsig-patch
} }
function at-repos-social-app-statsig-patch() {
patch-apply "Disable Statsig SDK" "social-app" "disable-statsig-sdk.diff"
}
# Common patch function with status detection # Common patch function with status detection
function apply-patch() { function apply-patch() {
local patch_name=$1 local patch_name=$1
@@ -240,6 +247,8 @@ function at-repos-patch-apply-all() {
repo="atproto" repo="atproto"
elif [[ $filename == *"pds"* ]]; then elif [[ $filename == *"pds"* ]]; then
repo="atproto" repo="atproto"
elif [[ $filename == *"indigo"* || $filename == *"bgs"* ]]; then
repo="indigo"
fi fi
patch-apply "$title" "$repo" "$filename" patch-apply "$title" "$repo" "$filename"

View File

@@ -0,0 +1,12 @@
diff --git a/bgs/fedmgr.go b/bgs/fedmgr.go
index 2235c6e..e69de29 100644
--- a/bgs/fedmgr.go
+++ b/bgs/fedmgr.go
@@ -342,6 +342,7 @@ var ErrNewSubsDisabled = fmt.Errorf("new subscriptions temporarily disabled")
// Checks whether a host is allowed to be subscribed to
// must be called with the slurper lock held
func (s *Slurper) canSlurpHost(host string) bool {
+ return true
// Check if we're over the limit for new PDSs today
if !s.NewPDSPerDayLimiter.Allow() {
return false