Remove direct url in post.js to socket