Fix upvote button on initial story submission.
This commit is contained in:
@ -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,
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user