{{ getUser(post["creator"])["username"] }}
-{{ post["created"] }}
- {% if userdata.administrator == 1 %} - Remove post -- {% endif %} - -
{{ post["textstr"] }}
-diff --git a/templates/main.html b/templates/main.html
index 699e70b..dedd0dc 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -26,16 +26,18 @@
{% for post in posts %}
-
{{ getUser(post["creator"])["username"] }}
-{{ post["created"] }}
- {% if userdata.administrator == 1 %} - Remove post -{{ post["textstr"] }}
-{{ getUser(post["creator"])["username"] }}
+{{ post["created"] }}
+ {% if userdata %} + {% if userdata.administrator == 1 %} + Remove post +{{ post["textstr"] }}
+