From 57f96abd0cf5930e0475823c9abdb8a73043290c Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Tue, 24 Jan 2023 09:25:14 -0500 Subject: [PATCH] like counter --- public/js/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/home.js b/public/js/home.js index 9ccd610..c6f8a86 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -44,7 +44,7 @@ function parsePost(post) { ${post.content.replace(/\n/g,'
')}

- ${Object.keys(post.likes).length} Likes + ${Object.keys(post.likes).map(k => post.likes[k]).filter(v => v !== false).length} Likes