Explorar o código

Fix wrong post object being sent

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
3c759d58f7
Modificáronse 1 ficheiros con 2 adicións e 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