diff options
author | FChannel <=> | 2021-01-19 16:41:31 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-19 16:41:31 -0800 |
commit | cecfc9b08bbce20b14c367577ba728f27d51fb55 (patch) | |
tree | 97e1eacd16ac51c5f23419b30b61f37659b48576 /outboxGet.go | |
parent | 328eff4285c94d3840659c04921d7c8048ea1f55 (diff) |
cache system and follow/follower connections
Diffstat (limited to 'outboxGet.go')
-rw-r--r-- | outboxGet.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/outboxGet.go b/outboxGet.go index 1065ad9..7aaf70f 100644 --- a/outboxGet.go +++ b/outboxGet.go @@ -23,8 +23,6 @@ func GetActorOutbox(w http.ResponseWriter, r *http.Request, db *sql.DB) { w.Write(enc) } - - func GetObjectsFromFollow(actor Actor) []ObjectBase { var followingCol Collection var followObj []ObjectBase @@ -107,9 +105,12 @@ func GetObjectFromPath(db *sql.DB, path string) ObjectBase{ for rows.Next(){ var post ObjectBase var attachID string - var previewID string + var previewID string + + var nActor Actor + post.Actor = &nActor - err = rows.Scan(&post.Id, &post.Name, &post.Content, &post.Type, &post.Published, &post.AttributedTo, &attachID, &previewID, &post.Actor) + err = rows.Scan(&post.Id, &post.Name, &post.Content, &post.Type, &post.Published, &post.AttributedTo, &attachID, &previewID, &post.Actor.Id) CheckError(err, "error scan object into post struct from path") |