all repos — honk @ 8f0c1c92424f7020d78b288a18664ff034804f38

my fork of honk

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
commit

8f0c1c92424f7020d78b288a18664ff034804f38

parent

1a4b39971cf83bd2acb09ceac14fd975da9f1d7d

3 files changed, 6 insertions(+), 5 deletions(-)

jump to
M activity.goactivity.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.gofun.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)
M honk.gohonk.go

@@ -68,6 +68,7 @@ seckey httpsig.PrivateKey

} const serverUID int64 = -2 +const readyLuserOne int64 = 1 type Honk struct { ID int64