like counter

This commit is contained in:
Tyler Murphy 2023-01-24 09:25:14 -05:00
parent 1aecfe81bc
commit 57f96abd0c

View file

@ -44,7 +44,7 @@ function parsePost(post) {
${post.content.replace(/\n/g,'<br>')} ${post.content.replace(/\n/g,'<br>')}
</p> </p>
<span class="gtext mtext"> <span class="gtext mtext">
${Object.keys(post.likes).length} Likes ${Object.keys(post.likes).map(k => post.likes[k]).filter(v => v !== false).length} Likes
</span> </span>
<div class="fullline nb"></div> <div class="fullline nb"></div>
<div class="postbuttons"> <div class="postbuttons">