Fix upvote button on initial story submission.
This commit is contained in:
@ -340,7 +340,10 @@ exports.storySubmission = function(req, res, next) {
|
|||||||
allowedAttributes: []
|
allowedAttributes: []
|
||||||
}).replace(/"/g, '"'),
|
}).replace(/"/g, '"'),
|
||||||
rank: 1,
|
rank: 1,
|
||||||
upVotes: data.upVotes,
|
upVotes: [({
|
||||||
|
upVotedBy: req.user._id,
|
||||||
|
upVotedByUsername: req.user.profile.username
|
||||||
|
})],
|
||||||
author: {
|
author: {
|
||||||
picture: req.user.profile.picture,
|
picture: req.user.profile.picture,
|
||||||
userId: req.user._id,
|
userId: req.user._id,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.col-xs-12
|
.col-xs-12
|
||||||
.spacer
|
.spacer
|
||||||
h1.text-center Search is
|
h1.text-center Search
|
||||||
h3 here!
|
|
||||||
.input-group
|
.input-group
|
||||||
input#searchArea.big-text-field.field-responsive.form-control(type='text', placeholder='Search our links', autofocus)
|
input#searchArea.big-text-field.field-responsive.form-control(type='text', placeholder='Search our links', autofocus)
|
||||||
span.input-group-btn
|
span.input-group-btn
|
||||||
|
Reference in New Issue
Block a user