retry follow requests
Ted Unangst tedu@tedunangst.com
Mon, 10 Jun 2019 23:51:04 -0400
1 files changed,
9 insertions(+),
9 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -710,16 +710,16 @@ j["to"] = xid
j["object"] = xid j["published"] = time.Now().UTC().Format(time.RFC3339) - box, err := getboxes(xid) - if err != nil { - log.Printf("can't send follow: %s", err) - return - } - keyname, key := ziggy(user.Name) - err = PostJunk(keyname, key, box.In, j) - if err != nil { - log.Printf("failed to subsub: %s", err) + a := xid + box, _ := getboxes(xid) + if box != nil { + a = "%" + box.In } + 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{}) {