Merge pull request #3478 from FreeCodeCamp/remove-emails
remove email address from stories
This commit is contained in:
@ -34,10 +34,6 @@
|
|||||||
"description": {
|
"description": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"originalStoryAuthorEmail": {
|
|
||||||
"type": "string",
|
|
||||||
"default": ""
|
|
||||||
},
|
|
||||||
"rank": {
|
"rank": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"default": 0
|
"default": 0
|
||||||
|
@ -170,7 +170,6 @@ module.exports = function(app) {
|
|||||||
title: story.headline,
|
title: story.headline,
|
||||||
link: story.link,
|
link: story.link,
|
||||||
originalStoryLink: dashedName,
|
originalStoryLink: dashedName,
|
||||||
originalStoryAuthorEmail: story.author.email || '',
|
|
||||||
author: story.author,
|
author: story.author,
|
||||||
rank: story.upVotes.length,
|
rank: story.upVotes.length,
|
||||||
upVotes: story.upVotes,
|
upVotes: story.upVotes,
|
||||||
@ -373,13 +372,11 @@ module.exports = function(app) {
|
|||||||
author: {
|
author: {
|
||||||
picture: req.user.picture,
|
picture: req.user.picture,
|
||||||
userId: req.user.id,
|
userId: req.user.id,
|
||||||
username: req.user.username,
|
username: req.user.username
|
||||||
email: req.user.email
|
|
||||||
},
|
},
|
||||||
image: data.image,
|
image: data.image,
|
||||||
storyLink: storyLink,
|
storyLink: storyLink,
|
||||||
metaDescription: data.storyMetaDescription,
|
metaDescription: data.storyMetaDescription
|
||||||
originalStoryAuthorEmail: req.user.email
|
|
||||||
});
|
});
|
||||||
return saveInstance(newStory);
|
return saveInstance(newStory);
|
||||||
});
|
});
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
script.
|
script.
|
||||||
var storyId = !{JSON.stringify(id)};
|
var storyId = !{JSON.stringify(id)};
|
||||||
var originalStoryLink = !{JSON.stringify(originalStoryLink)};
|
var originalStoryLink = !{JSON.stringify(originalStoryLink)};
|
||||||
var originalStoryAuthorEmail = !{JSON.stringify(originalStoryAuthorEmail)};
|
|
||||||
var upVotes = !{JSON.stringify(upVotes)};
|
var upVotes = !{JSON.stringify(upVotes)};
|
||||||
var image = !{JSON.stringify(image)};
|
var image = !{JSON.stringify(image)};
|
||||||
var hasUserVoted = !{JSON.stringify(hasUserVoted)};
|
var hasUserVoted = !{JSON.stringify(hasUserVoted)};
|
||||||
|
Reference in New Issue
Block a user