Direct to torrent after comment
Cette révision appartient à :
Parent
8f7113a3e6
révision
669edce070
1 fichiers modifiés avec 3 ajouts et 2 suppressions
|
@ -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 {
|
||||
|
|
Référencer dans un nouveau ticket