# HG changeset patch # User Goffi # Date 1756636729 -7200 # Node ID c1d33d7e4b96f0de07944581abb311de7d4f43e9 # Parent f7a4345818726b402cf2e14e4961520d34026398 blog (item): Check if there are items before displaying comments: The template was crashing if `items` field was not present at all in comments data. rel 463 diff -r f7a434581872 -r c1d33d7e4b96 sat_templates/templates/bulma/blog/item.html --- a/sat_templates/templates/bulma/blog/item.html Fri Jul 04 17:33:22 2025 +0200 +++ b/sat_templates/templates/bulma/blog/item.html Sun Aug 31 12:38:49 2025 +0200 @@ -111,9 +111,11 @@ {# comments #} {% for comments_data in item.comments %} - {% for item in comments_data['items'] %} - {% include 'blog/item.html' %} - {% endfor %} + {% if "items" in comment_data %} + {% for item in comments_data['items'] %} + {% include 'blog/item.html' %} + {% endfor %} + {% endif %} {% if allow_commenting and item_level == 1 %}
{{- textbox.comment(service=comments_data.service, node=comments_data.node) -}}