diff options
author | FChannel <> | 2021-06-24 23:45:18 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-24 23:45:18 -0700 |
commit | ef7eb7330018c84a44fb24711982c25f51749d2e (patch) | |
tree | 8da97fce2dad238b994eede1f0b9ce2bf9b3a7ff /outboxGet.go | |
parent | b4f7d00ad9d13f96323366ded2eb7702e37f6e52 (diff) |
changed activitystream formating for objects to better align with pleromas actor field
Diffstat (limited to 'outboxGet.go')
-rw-r--r-- | outboxGet.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/outboxGet.go b/outboxGet.go index 49b7bd5..acc1eee 100644 --- a/outboxGet.go +++ b/outboxGet.go @@ -45,7 +45,7 @@ func GetCollectionFromPath(db *sql.DB, path string) Collection { CheckError(err, "error scan object into post struct from path") - post.Actor = &actor + post.Actor = actor.Id post.InReplyTo = GetInReplyToDB(db, post) @@ -88,9 +88,9 @@ func GetObjectFromPath(db *sql.DB, path string) ObjectBase{ var previewID string var nActor Actor - nObj.Actor = &nActor + nObj.Actor = nActor.Id - err = rows.Scan(&nObj.Id, &nObj.Name, &nObj.Content, &nObj.Type, &nObj.Published, &nObj.AttributedTo, &attachID, &previewID, &nObj.Actor.Id) + err = rows.Scan(&nObj.Id, &nObj.Name, &nObj.Content, &nObj.Type, &nObj.Published, &nObj.AttributedTo, &attachID, &previewID, &nObj.Actor) CheckError(err, "error scan object into post struct from path") |