diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/home.js | 3 |
1 files changed, 1 insertions, 2 deletions
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, |