still working on passing original author email all the way down the comment chain

This commit is contained in:
Michael Q Larson
2015-04-08 00:30:51 -07:00
parent 1c7d0b11b6
commit 6242f322d7
6 changed files with 51 additions and 8 deletions

View File

@@ -250,10 +250,12 @@ $(document).ready(function() {
timePosted: Date.now(),
description: description,
storyMetaDescription: storyMetaDescription,
originalStoryAuthorEmail: user.email,
rank: 1,
upVotes: [userDataForUpvote],
author: {
picture: user.profile.picture,
email: user.email,
userId: user._id,
username: user.profile.username
},
@@ -282,11 +284,13 @@ $(document).ready(function() {
data: {
associatedPost: storyId,
originalStoryLink: originalStoryLink,
originalStoryAuthorEmail: originalStoryAuthorEmail,
body: data,
author: {
picture: user.profile.picture,
userId: user._id,
username: user.profile.username
username: user.profile.username,
email: user.email
}
}
})