Merge pull request #1372 from writefreely/fix-context-security

Fix security context getting removed on AP collection endpoint
This commit is contained in:
Matt Baer 2025-06-04 14:26:57 -04:00 committed by GitHub
commit 72fa575fee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
}