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 /main.go | |
parent | f6eecc720abaefb954fda9a26aab78bb1d706ba4 (diff) |
when merging boards into a feed show the board color based on posts restrictions
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -415,7 +415,7 @@ func main() { followActivity.Actor = &nactor followActivity.Object = &obj followActivity.Actor.Id = r.FormValue("actor") - + var mactor Actor followActivity.Object.Actor = &mactor followActivity.Object.Actor.Id = r.FormValue("follow") @@ -496,9 +496,12 @@ func main() { adminData.Title = "Manage /" + actor.Name + "/" adminData.Boards = Boards adminData.Board.Name = actor.Name - adminData.Actor = actor.Id + adminData.Board.Actor = actor adminData.Key = *Key adminData.Board.TP = TP + + adminData.Board.Post.Actor = &actor + t.ExecuteTemplate(w, "layout", adminData) } else if admin || actor.Id == Domain { @@ -529,6 +532,8 @@ func main() { adminData.Board.ModCred,_ = GetPasswordFromSession(r) adminData.Boards = Boards + + adminData.Board.Post.Actor = &actor t.ExecuteTemplate(w, "layout", adminData) } |