diff options
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") |