created the "move message" page

This commit is contained in:
2026-01-29 18:16:23 -07:00
parent 8a66579c31
commit 8341a6e4d4
5 changed files with 100 additions and 2 deletions
+1
View File
@@ -570,6 +570,7 @@ func ReadPosts(ctxt ui.AmContext) (string, any, error) {
canScribble := !isScribbled && (isMyPost || confNukePerm)
ctxt.VarMap().Set("canScribble", canScribble)
ctxt.VarMap().Set("canNuke", confNukePerm)
ctxt.VarMap().Set("canMove", confNukePerm && conf.TestPermission("Conference.Post", myLevel) && topic.TopMessage > 0)
canPublish := !isScribbled && database.AmTestPermission("Global.PublishFP", myLevel)
if canPublish {
published, _ := posts[0].IsPublished(ctxt.Ctx())