From 1df70fec27ab5e4aa3dff8521767454be6b5498c Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 4 Feb 2021 12:33:42 -0800 Subject: when merging boards into a feed show the board color based on posts restrictions --- main.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 270977c..3dfad82 100644 --- a/main.go +++ b/main.go @@ -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) } -- cgit v1.2.3