diff --git a/templates/site/torrents/view.jet.html b/templates/site/torrents/view.jet.html index 586058e7..d7390f9b 100644 --- a/templates/site/torrents/view.jet.html +++ b/templates/site/torrents/view.jet.html @@ -212,23 +212,23 @@ {{idx := 1}} {{previousComment := ""}} {{previousUser := 0}} - {{range index, element := Torrent.Comments}} - {{if previousComment != element.Content || previousUser != element.UserID || element.UserID == 0}} + {{range _, comment := Torrent.Comments}} + {{if previousComment != comment.Content || previousUser != comment.UserID || comment.UserID == 0}}
{{ T("torrent_no_comments") }}