Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Direct to torrent after comment

Cette révision appartient à :
PantsuDev 2017-07-16 10:59:25 +10:00
Parent 8f7113a3e6
révision 669edce070

Voir le fichier

@ -113,7 +113,8 @@ func PostCommentHandler(c *gin.Context) {
messages.Error(err)
}
}
ViewHandler(c)
url := "/view/" + strconv.FormatUint(uint64(torrent.ID), 10)
c.Redirect(302, url+"?success")
}
// ReportTorrentHandler : Controller for sending a torrent report
@ -146,7 +147,7 @@ func ReportTorrentHandler(c *gin.Context) {
}
}
// ReportTorrentHandler : Controller for sending a torrent report
// ReportTorrentHandler: Controller for sending a torrent report
func ReportViewTorrentHandler(c *gin.Context) {
type Report struct {