posts are marked as deleted to preserve array structure
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<h1>
|
||||
<%- user.prettyname %>'s posts
|
||||
<%= user.prettyname %>'s posts
|
||||
</h1>
|
||||
<p><%- converter.makeHtml(user.description) %></p>
|
||||
<%- config.seperator %>
|
||||
|
@@ -9,7 +9,9 @@
|
||||
</div>
|
||||
<div id="posts">
|
||||
<% for (let index = posts.length - 1; index >= 0; index--) { %>
|
||||
<%- include('../posts/timeline', {post: posts[index], index: index, user: users[posts[index].userID]}); %>
|
||||
<% if (posts[index]["deleted"] != true) { %>
|
||||
<%- include('../posts/timeline', {post: posts[index], index: index, user: users[posts[index].userID]}); %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</div>
|
||||
<footer>
|
||||
|
Reference in New Issue
Block a user