all repos — honk @ f272e72ed9bb58f7e4b574ec167c3706fc7f412f

my fork of honk

fix unfollow. needs object field in follow object.
Ted Unangst tedu@tedunangst.com
Thu, 20 Jun 2019 23:47:05 -0400
commit

f272e72ed9bb58f7e4b574ec167c3706fc7f412f

parent

56230d6be033aeb62232a4efbdda2d37a9eacf3f

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M activity.goactivity.go

@@ -657,7 +657,7 @@ xid, _ := req.GetString("id")

actor, _ := req.GetString("actor") j := junk.New() j["@context"] = itiswhatitis - j["id"] = user.URL + "/dub/" + xid + j["id"] = user.URL + "/dub/" + url.QueryEscape(xid) j["type"] = "Accept" j["actor"] = user.URL j["to"] = actor

@@ -674,15 +674,16 @@

func itakeitallback(user *WhatAbout, xid string) { j := junk.New() j["@context"] = itiswhatitis - j["id"] = user.URL + "/unsub/" + xid + j["id"] = user.URL + "/unsub/" + url.QueryEscape(xid) j["type"] = "Undo" j["actor"] = user.URL j["to"] = xid f := junk.New() - f["id"] = user.URL + "/sub/" + xid + f["id"] = user.URL + "/sub/" + url.QueryEscape(xid) f["type"] = "Follow" f["actor"] = user.URL f["to"] = xid + f["object"] = xid j["object"] = f j["published"] = time.Now().UTC().Format(time.RFC3339)

@@ -696,7 +697,7 @@

func subsub(user *WhatAbout, xid string) { j := junk.New() j["@context"] = itiswhatitis - j["id"] = user.URL + "/sub/" + xid + j["id"] = user.URL + "/sub/" + url.QueryEscape(xid) j["type"] = "Follow" j["actor"] = user.URL j["to"] = xid