summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-27 16:04:04 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-27 16:04:04 -0500
commit8536e41c64811630ce8c99eb49d81f89bfb69456 (patch)
tree4066f9e7dc47fbda4b6aa74871d26ebbe3a43d26 /public/js
parentinput length and range checking (diff)
downloadxssbook-8536e41c64811630ce8c99eb49d81f89bfb69456.tar.gz
xssbook-8536e41c64811630ce8c99eb49d81f89bfb69456.tar.bz2
xssbook-8536e41c64811630ce8c99eb49d81f89bfb69456.zip
rusty boio finished
Diffstat (limited to 'public/js')
-rw-r--r--public/js/home.js3
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,