{% for post in posts %}

{{ getUser(post["creator"])["username"] }}

{% if userdata %} {% if userdata.administrator == 1 %} Remove post

{% endif %} {% endif %} {% if userdata %} {% endif %}

{{ post["textstr"] }}

{% if getComments(post["id"]) | length > 0 %}
{% for comment in getComments(post["id"]) %}

{{ getUser(comment["creator"])["username"] }}: {{ comment.textstr }}

{% endfor %}
{% else %} {% endif %}
{% endfor %}