diff --git a/public/style.css b/public/style.css index a98946b..267da94 100644 --- a/public/style.css +++ b/public/style.css @@ -442,12 +442,12 @@ form.nsfw div { .entry .buttons .blockpopup { display: inline-block; position: absolute; - border: 1px solid #888; z-index: 100; background-color: white; } form.blockpost { - margin: 2px; + padding: 2px; + border: 1px solid #888; } .blockpost div:last-child input { margin: 4px 2px 4px 4px; diff --git a/routes.go b/routes.go index ecb415f..c2176b6 100644 --- a/routes.go +++ b/routes.go @@ -1585,6 +1585,7 @@ func GetRouter() *httprouter.Router { router.GET("/c/:community/edit", middleware(GetCreateCommunity)) router.GET("/post/:postid", middleware(GetPost)) router.POST("/post/:postid", middleware(UserOp)) + router.GET("/post/:postid/:op", middleware(GetPost)) router.GET("/comment/:commentid", middleware(GetComment)) router.GET("/comment/:commentid/:op", middleware(GetComment)) router.POST("/comment/:commentid", middleware(UserOp))