retry follow requests

This commit is contained in:
Ted Unangst 2019-06-10 23:51:04 -04:00
parent bb51ffa6f5
commit 261ff367cf
1 changed files with 9 additions and 9 deletions

View File

@ -710,16 +710,16 @@ func subsub(user *WhatAbout, xid string) {
j["object"] = xid j["object"] = xid
j["published"] = time.Now().UTC().Format(time.RFC3339) j["published"] = time.Now().UTC().Format(time.RFC3339)
box, err := getboxes(xid) a := xid
if err != nil { box, _ := getboxes(xid)
log.Printf("can't send follow: %s", err) if box != nil {
return a = "%" + box.In
}
keyname, key := ziggy(user.Name)
err = PostJunk(keyname, key, box.In, j)
if err != nil {
log.Printf("failed to subsub: %s", err)
} }
var buf bytes.Buffer
WriteJunk(&buf, j)
msg := buf.Bytes()
deliverate(0, user.Name, a, msg)
} }
func jonkjonk(user *WhatAbout, h *Honk) (map[string]interface{}, map[string]interface{}) { func jonkjonk(user *WhatAbout, h *Honk) (map[string]interface{}, map[string]interface{}) {