From e28d07968df4577866e08bcba97cc55490009af6 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 23 Apr 2019 15:58:13 -0400 Subject: [PATCH] requesting bonks with the old activity name may work better --- activity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activity.go b/activity.go index 754e126..56a8ffd 100644 --- a/activity.go +++ b/activity.go @@ -56,6 +56,7 @@ func ReadJunk(r io.Reader) (map[string]interface{}, error) { } 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 @@ func GetJunk(url string) (map[string]interface{}, error) { if err != nil { return nil, err } - at := theonetruename + at := thefakename if strings.Contains(url, ".well-known/webfinger?resource") { at = "application/jrd+json" }