The codebase that powers boop.cat boop.cat
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix

+2 -6
+2 -6
backend-go/handlers/atproto.go
··· 156 156 jsonError(w, "atproto-not-configured", http.StatusNotFound) 157 157 return 158 158 } 159 + keyPEM = strings.ReplaceAll(keyPEM, `\\n`, "\n") 159 160 keyPEM = strings.ReplaceAll(keyPEM, `\n`, "\n") 160 161 block, _ := pem.Decode([]byte(keyPEM)) 161 162 if block == nil { ··· 511 512 512 513 func getPrivateKey() (*ecdsa.PrivateKey, error) { 513 514 keyPEM := os.Getenv("ATPROTO_PRIVATE_KEY_1") 514 - fmt.Printf("DEBUG key len=%d first30=%q\n", len(keyPEM), func() string { 515 - if len(keyPEM) > 30 { 516 - return keyPEM[:30] 517 - } 518 - return keyPEM 519 - }()) 515 + keyPEM = strings.ReplaceAll(keyPEM, `\\n`, "\n") 520 516 keyPEM = strings.ReplaceAll(keyPEM, `\n`, "\n") 521 517 block, _ := pem.Decode([]byte(keyPEM)) 522 518 if block == nil {