retry follow requests
This commit is contained in:
parent
bb51ffa6f5
commit
261ff367cf
18
activity.go
18
activity.go
|
@ -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{}) {
|
||||||
|
|
Loading…
Reference in New Issue