data.getdata() excepts two parameters, if desired, the second will be the index, however if you don't specify anything, the whole array will be returned Also, comments now have a composite key of postID-commentID, with each post's comments having their own set starting at 0, this makes it easier to index and find a specific comment, and making the getcomment() function unessesary
6 lines
228 B
Plaintext
6 lines
228 B
Plaintext
<b><%= comment.name %></b>
|
|
<%= func.unix_time_to_date_format(comment.pubdate) %>
|
|
<a href='/comment/<%= postID %>-<%= comment.id %>'>No. <%= postID %>-<%= comment.id %></a>:<br/>
|
|
<%- func.render_comment(comment.content) %>
|
|
<br/>
|