switch to using user 1 key for gets because elephants are dumb
Ted Unangst tedu@tedunangst.com
Mon, 26 Dec 2022 13:27:39 -0500
3 files changed,
6 insertions(+),
5 deletions(-)
M
activity.go
→
activity.go
@@ -371,7 +371,7 @@ err := row.Scan(&info)
if err != nil { dlog.Printf("need to get boxes for %s", ident) var j junk.Junk - j, err = GetJunk(serverUID, ident) + j, err = GetJunk(readyLuserOne, ident) if err != nil { dlog.Printf("error getting boxes: %s", err) return nil, false@@ -1474,7 +1474,7 @@
func collectiveaction(honk *Honk) { user := getserveruser() for _, ont := range honk.Onts { - dubs := getnameddubs(serverUID, ont) + dubs := getnameddubs(readyLuserOne, ont) if len(dubs) == 0 { continue }@@ -1588,7 +1588,7 @@ if err == nil {
return href, true } dlog.Printf("fishing for %s", name) - j, err := GetJunkFast(serverUID, fmt.Sprintf("https://%s/.well-known/webfinger?resource=acct:%s", m[1], name)) + j, err := GetJunkFast(readyLuserOne, fmt.Sprintf("https://%s/.well-known/webfinger?resource=acct:%s", m[1], name)) if err != nil { ilog.Printf("failed to go fish %s: %s", name, err) return "", true@@ -1633,7 +1633,7 @@ }
if name == "" { return nil, fmt.Errorf("no name") } - obj, err := GetJunkFast(serverUID, name) + obj, err := GetJunkFast(readyLuserOne, name) if err != nil { return nil, err }
M
fun.go
→
fun.go
@@ -643,7 +643,7 @@ var zaggies = cache.New(cache.Options{Filler: func(keyname string) (httpsig.PublicKey, bool) {
data := getxonker(keyname, "pubkey") if data == "" { dlog.Printf("hitting the webs for missing pubkey: %s", keyname) - j, err := GetJunk(serverUID, keyname) + j, err := GetJunk(readyLuserOne, keyname) if err != nil { ilog.Printf("error getting %s pubkey: %s", keyname, err) when := time.Now().UTC().Format(dbtimeformat)