Merge pull request #1372 from writefreely/fix-context-security
Fix security context getting removed on AP collection endpoint
This commit is contained in:
commit
72fa575fee
1 changed files with 0 additions and 1 deletions
|
@ -884,7 +884,6 @@ func handleViewCollection(app *App, w http.ResponseWriter, r *http.Request) erro
|
|||
// Serve ActivityStreams data now, if requested
|
||||
if IsActivityPubRequest(r) {
|
||||
ac := c.PersonObject()
|
||||
ac.Context = []interface{}{activitystreams.Namespace}
|
||||
setCacheControl(w, apCacheTime)
|
||||
return impart.RenderActivityJSON(w, ac, http.StatusOK)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue