docs and also I improved the readability/user friendliness of the EJS
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div id="posts">
|
||||
<% for (let index = posts.length - 1; index >= 0; index--) { %>
|
||||
<% if (posts[index].userID == userID) { %>
|
||||
<%- include('../posts/user', {post: posts[index], postID: index, user: user}); %>
|
||||
<%- include('../posts/user', {post: posts[index], postID: index, user: user, comments: comments[index]}); %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user