requesting bonks with the old activity name may work better
Ted Unangst tedu@tedunangst.com
Tue, 23 Apr 2019 15:58:13 -0400
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.go
@@ -56,6 +56,7 @@ return j, nil
} var theonetruename = `application/ld+json; profile="https://www.w3.org/ns/activitystreams"` +var thefakename = `application/activity+json` var falsenames = []string{ `application/ld+json`, `application/activity+json`,@@ -123,7 +124,7 @@ req, err := http.NewRequest("GET", url, nil)
if err != nil { return nil, err } - at := theonetruename + at := thefakename if strings.Contains(url, ".well-known/webfinger?resource") { at = "application/jrd+json" }