From c9882fbff2b3b6104aa27c11dbf5cdf62690bc30 Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 10 Dec 2025 16:19:50 +0900 Subject: [PATCH] fix gemini --- patching/190-bgs-force-internal-pds.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patching/190-bgs-force-internal-pds.patch diff --git a/patching/190-bgs-force-internal-pds.patch b/patching/190-bgs-force-internal-pds.patch new file mode 100644 index 0000000..07bcb37 --- /dev/null +++ b/patching/190-bgs-force-internal-pds.patch @@ -0,0 +1,14 @@ +--- a/bgs/bgs.go ++++ b/bgs/bgs.go +@@ -1037,6 +1037,11 @@ + durl.Scheme = "http" + } + ++ if durl.Host == "syu.is" || durl.Host == "bsky.syu.is" { ++ durl.Scheme = "http" ++ durl.Host = "pds:3000" ++ } ++ + // TODO: the PDS's DID should also be in the service, we could use that to look up? + var peering models.PDS + if err := s.db.Find(&peering, "host = ?", durl.Host).Error; err != nil {