Make sure Person endpoint returns Content-Type application/activity+json

This commit is contained in:
Anthony Wang 2022-06-13 16:16:40 -05:00
parent af96558f9c
commit d9e2eb0ef5
Signed by: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -174,7 +174,7 @@ func PersonOutbox(ctx *context.APIContext) {
ctx.Error(http.StatusInternalServerError, "Couldn't fetch outbox", err)
}
outbox := ap.OrderedCollectionNew(ap.IRI(link + "/outbox"))
outbox := ap.OrderedCollectionNew(ap.IRI(link))
for _, action := range feed {
/*if action.OpType == ExampleType {
activity := ap.ExampleNew()
@ -229,7 +229,7 @@ func PersonFollowing(ctx *context.APIContext) {
return
}
following := ap.OrderedCollectionNew(ap.IRI(link+"/following"))
following := ap.OrderedCollectionNew(ap.IRI(link))
following.TotalItems = uint(len(users))
for _, user := range users {
@ -281,7 +281,7 @@ func PersonFollowers(ctx *context.APIContext) {
return
}
followers := ap.OrderedCollectionNew(ap.IRI(link+"/followers"))
followers := ap.OrderedCollectionNew(ap.IRI(link))
followers.TotalItems = uint(len(users))
for _, user := range users {