aboutsummaryrefslogtreecommitdiff
path: root/outboxGet.go
diff options
context:
space:
mode:
Diffstat (limited to 'outboxGet.go')
-rw-r--r--outboxGet.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/outboxGet.go b/outboxGet.go
index 8c178a2..42fafd0 100644
--- a/outboxGet.go
+++ b/outboxGet.go
@@ -10,16 +10,15 @@ func GetActorOutbox(w http.ResponseWriter, r *http.Request, db *sql.DB) {
var collection Collection
collection.OrderedItems = GetObjectFromDB(db, actor).OrderedItems
-
collection.AtContext.Context = "https://www.w3.org/ns/activitystreams"
collection.Actor = &actor
- collection.Actor.AtContext.Context = ""
collection.TotalItems = GetObjectPostsTotalDB(db, actor)
collection.TotalImgs = GetObjectImgsTotalDB(db, actor)
- enc, _ := json.MarshalIndent(collection, "", "\t")
- w.Header().Set("Content-Type", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"")
+ enc, _ := json.MarshalIndent(collection, "", "\t")
+
+ w.Header().Set("Content-Type", activitystreams)
w.Write(enc)
}