aboutsummaryrefslogtreecommitdiff
path: root/outboxGet.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-20 14:55:50 -0800
committerFChannel <=>2021-01-20 14:55:50 -0800
commitb6c03f8aa0ce125a76464699a72ff156769feb0e (patch)
tree1d270f5e81a823046cb0d7d9390b16787510b8b6 /outboxGet.go
parent08fea42e13bd16b7f50ece10eebcbebe8c9509fb (diff)
added actor object to context json
Diffstat (limited to 'outboxGet.go')
-rw-r--r--outboxGet.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/outboxGet.go b/outboxGet.go
index 7aaf70f..dbd0fa9 100644
--- a/outboxGet.go
+++ b/outboxGet.go
@@ -13,7 +13,8 @@ func GetActorOutbox(w http.ResponseWriter, r *http.Request, db *sql.DB) {
collection.OrderedItems = GetObjectFromDB(db, actor).OrderedItems
collection.AtContext.Context = "https://www.w3.org/ns/activitystreams"
- collection.Actor = actor.Id
+ collection.Actor = &actor
+ collection.Actor.AtContext.Context = ""
collection.TotalItems = GetObjectPostsTotalDB(db, actor)
collection.TotalImgs = GetObjectImgsTotalDB(db, actor)