diff --git a/controllers/story.js b/controllers/story.js index 507d255f9f..c434e4752a 100644 --- a/controllers/story.js +++ b/controllers/story.js @@ -340,7 +340,10 @@ exports.storySubmission = function(req, res, next) { allowedAttributes: [] }).replace(/"/g, '"'), rank: 1, - upVotes: data.upVotes, + upVotes: [({ + upVotedBy: req.user._id, + upVotedByUsername: req.user.profile.username + })], author: { picture: req.user.profile.picture, userId: req.user._id, diff --git a/views/stories/search-stories.jade b/views/stories/search-stories.jade index cd46f95757..f031eb0956 100644 --- a/views/stories/search-stories.jade +++ b/views/stories/search-stories.jade @@ -1,7 +1,6 @@ .col-xs-12 .spacer - h1.text-center Search is - h3 here! + h1.text-center Search .input-group input#searchArea.big-text-field.field-responsive.form-control(type='text', placeholder='Search our links', autofocus) span.input-group-btn