diff --git a/files/templates/comments.html b/files/templates/comments.html index 66a892a1c..b8be729fc 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -432,19 +432,19 @@ {% if v and request.path.startswith('/@') and v.admin_level == 0 %} {% if voted==1 %}
  • {% endif %} {% elif v %} -
  • +
  • {% else %} -
  • +
  • {% endif %} -
  • {{score}}
  • +
  • {{score}}
  • {% if v and request.path.startswith('/@') and v.admin_level == 0 %} {% if voted==-1 %}
  • {% endif %} {% elif v %} -
  • +
  • {% else %} -
  • +
  • {% endif %} diff --git a/files/templates/submission.html b/files/templates/submission.html index 462b93c20..a5ab1c42b 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -728,10 +728,12 @@ showNewCommentCounts('{{p.id}}', {{p.comment_count}}) {% endif %} - const comments = JSON.parse(localStorage.getItem("comment-counts")) || {} - const newTotal = {{p.comment_count}} || ((comments['{{p.id}}'] || { c: 0 }).c + 1) - comments['{{p.id}}'] = { c: newTotal, t: Date.now() } - window.localStorage.setItem("comment-counts", JSON.stringify(comments)) + {% if "?context" not in request.full_path %} + const comments = JSON.parse(localStorage.getItem("comment-counts")) || {} + const newTotal = {{p.comment_count}} || ((comments['{{p.id}}'] || { c: 0 }).c + 1) + comments['{{p.id}}'] = { c: newTotal, t: Date.now() } + window.localStorage.setItem("comment-counts", JSON.stringify(comments)) + {% endif %} })() diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index cb0fe9956..c64dd5b6b 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -26,10 +26,10 @@