fix an issue when user doesnt have any posts/comments

This commit is contained in:
teddit
2020-11-21 15:37:46 +01:00
parent 5757ba1b57
commit 3b5779f371
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -59,6 +59,8 @@ html
li(class=past === 'all' ? 'active' : '')
a(href="?sort=" + sortby + "&t=all") all time
.entries
if !data.posts || data.posts.length <= 0
h3 no posts/comments
each post in data.posts
if post.type === 't3'
.entry.t3