aboutsummaryrefslogtreecommitdiff
path: root/route/routes/admin.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-12 23:04:13 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitcc3e8e57154409469267b0526807a907d5166147 (patch)
tree59acbf28290c8658a538f8843a1d0d9e1a598baf /route/routes/admin.go
parent0418dab57f9cf19540234d157a512e30a70a7152 (diff)
admin page layout/css - truncate long new line posts
Diffstat (limited to 'route/routes/admin.go')
-rw-r--r--route/routes/admin.go16
1 files changed, 14 insertions, 2 deletions
diff --git a/route/routes/admin.go b/route/routes/admin.go
index 31e8e8e..1576a3a 100644
--- a/route/routes/admin.go
+++ b/route/routes/admin.go
@@ -129,13 +129,19 @@ func AdminIndex(ctx *fiber.Ctx) error {
adminData.Board.Post.Actor = actor.Id
+ adminData.Instance, _ = activitypub.GetActorFromDB(config.Domain)
+
adminData.PostBlacklist, _ = util.GetRegexBlacklist()
+ adminData.Meta.Description = adminData.Title
+ adminData.Meta.Url = adminData.Board.Actor.Id
+ adminData.Meta.Title = adminData.Title
+
adminData.Themes = &config.Themes
return ctx.Render("admin", fiber.Map{
"page": adminData,
- })
+ }, "layouts/main")
}
func AdminFollow(ctx *fiber.Ctx) error {
@@ -255,6 +261,8 @@ func AdminActorIndex(ctx *fiber.Ctx) error {
data.Board.Post.Actor = actor.Id
+ data.Instance, _ = activitypub.GetActorFromDB(config.Domain)
+
data.AutoSubscribe, _ = actor.GetAutoSubscribe()
jannies, err := actor.GetJanitors()
@@ -263,6 +271,10 @@ func AdminActorIndex(ctx *fiber.Ctx) error {
return util.MakeError(err, "AdminActorIndex")
}
+ data.Meta.Description = data.Title
+ data.Meta.Url = data.Board.Actor.Id
+ data.Meta.Title = data.Title
+
data.Themes = &config.Themes
data.RecentPosts, _ = actor.GetRecentPosts()
@@ -274,7 +286,7 @@ func AdminActorIndex(ctx *fiber.Ctx) error {
return ctx.Render("manage", fiber.Map{
"page": data,
"jannies": jannies,
- })
+ }, "layouts/main")
}
func AdminAddJanny(ctx *fiber.Ctx) error {