소스 검색

Fix wrong post object being sent

sbkwgh 8 년 전
부모
커밋
3c759d58f7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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