From 8536e41c64811630ce8c99eb49d81f89bfb69456 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Fri, 27 Jan 2023 16:04:04 -0500 Subject: rusty boio finished --- public/js/home.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'public') diff --git a/public/js/home.js b/public/js/home.js index fd40ebf..23f0d01 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -25,7 +25,6 @@ function parseComment(comment) { } function parsePost(post) { - console.log(post.likes) const author = data.users[post.user_id] if (author === undefined) { author = {} @@ -125,7 +124,7 @@ async function post() { } error.innerHTML = ''; data.posts.unshift({ - post_id: response.msg, + post_id: response.json.post_id, user_id: data.user.user_id, date: Date.now(), content: text, -- cgit v1.2.3-freya