Fix upvote button on initial story submission.

This commit is contained in:
terakilobyte
2015-04-19 20:28:56 -04:00
parent 1596cdfedb
commit f396dad029
2 changed files with 5 additions and 3 deletions

View File

@ -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,

View File

@ -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