diff --git a/controllers/moderator/torrents.go b/controllers/moderator/torrents.go index 60b76b8d..b594f5e9 100644 --- a/controllers/moderator/torrents.go +++ b/controllers/moderator/torrents.go @@ -169,7 +169,7 @@ func DeleteTagsModPanel(c *gin.Context) { // TorrentBlockModPanel : Controller to lock torrents, redirecting to previous page func TorrentBlockModPanel(c *gin.Context) { - id, _ := strconv.ParseInt(c.Query("id"), 10, 32) + id, _ := strconv.ParseInt(c.PostForm("id"), 10, 32) torrent, _, err := torrents.ToggleBlock(uint(id)) var returnRoute, action string if torrent.IsDeleted() {