posts are marked as deleted to preserve array structure

This commit is contained in:
2025-07-28 15:11:26 +01:00
parent 38d82f9e1a
commit 39eba8fcda
4 changed files with 11 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
<h1>
<%- user.prettyname %>'s posts
<%= user.prettyname %>'s posts
</h1>
<p><%- converter.makeHtml(user.description) %></p>
<%- config.seperator %>

View File

@@ -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>