Explorar el Código

Fix wrong post object being sent

sbkwgh hace 8 años
padre
commit
3c759d58f7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      routes/post.js

+ 2 - 2
routes/post.js

@@ -149,9 +149,9 @@ router.post('/', async (req, res) => {
 					usernameTo: replyingToPost.User.username,
 					userFrom: user,
 					type: 'reply',
-					post: replyingToPost
+					post: post
 				})
-				
+
 				let ioUsers = req.app.get('io-users')
 				if(ioUsers[replyingToPost.User.username]) {
 					req.app