aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <=>2021-02-04 12:33:42 -0800
committerFChannel <=>2021-02-04 12:33:42 -0800
commit1df70fec27ab5e4aa3dff8521767454be6b5498c (patch)
tree4902b557879b46f37103ac7a62c62833796c8c22 /main.go
parentf6eecc720abaefb954fda9a26aab78bb1d706ba4 (diff)
when merging boards into a feed show the board color based on posts restrictions
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 7 insertions, 2 deletions
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)
}