aboutsummaryrefslogtreecommitdiff
path: root/outboxGet.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-25 13:02:40 -0800
committerFChannel <=>2021-01-25 13:02:40 -0800
commit7823265b9a7bea93befdd9b04c4332be5c5b0404 (patch)
treeb0cd6f742ae8637a8ed9a9323a5b9b6e2f662010 /outboxGet.go
parent3b923a6f098cacf35f309e44a4c67a6a576fba4e (diff)
feedback loop fix with getting actor collection
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)
}