diff options
author | FChannel <=> | 2021-02-04 12:33:42 -0800 |
---|---|---|
committer | FChannel <=> | 2021-02-04 12:33:42 -0800 |
commit | 1df70fec27ab5e4aa3dff8521767454be6b5498c (patch) | |
tree | 4902b557879b46f37103ac7a62c62833796c8c22 /Database.go | |
parent | f6eecc720abaefb954fda9a26aab78bb1d706ba4 (diff) |
when merging boards into a feed show the board color based on posts restrictions
Diffstat (limited to 'Database.go')
-rw-r--r-- | Database.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Database.go b/Database.go index a64ceb9..d027b43 100644 --- a/Database.go +++ b/Database.go @@ -466,8 +466,12 @@ func GetObjectByIDFromDB(db *sql.DB, postID string) Collection { CheckError(err, "error scan object into post struct") + actor = GetActorFromDB(db, actor.Id) + post.Actor = &actor + nColl.Actor = &actor + // var postCnt int // var imgCnt int post.Replies, _, _ = GetObjectRepliesDB(db, post) |