Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Add extended content type for ActivityPub objects. Closes #1827

Gabe Kangas05958721fe06
diff --git a/router/middleware/activityPub.go b/router/middleware/activityPub.go
index 6d3c917504..3c3805a0f0 100644
--- a/router/middleware/activityPub.go
+++ b/router/middleware/activityPub.go
@@ -21,7 +21,7 @@ func RequireActivityPubOrRedirect(handler http.HandlerFunc) http.HandlerFunc {
handler(w, r)
}
- acceptedContentTypes := []string{"application/json", "application/json+ld", "application/activity+json"}
+ acceptedContentTypes := []string{"application/json", "application/json+ld", "application/activity+json", `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`}
acceptString := r.Header.Get("Accept")
accept := strings.Split(acceptString, ",")