diff --git a/controllers/api.js b/controllers/api.js index 6a7ab4a2b2..4cf49253f3 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -66,12 +66,12 @@ exports.getFoursquare = function(req, res) { * Tumblr API example */ exports.getTumblr = function(req, res) { - var tumblrToken = _.findWhere(req.user.tokens, { kind: 'tumblr' }); + var tumblr = _.findWhere(req.user.tokens, { kind: 'tumblr' }); var client = tumblr.createClient({ consumer_key: config.tumblr.consumerKey, consumer_secret: config.tumblr.consumerSecret, - token: tumblrToken.token, - token_secret: tumblrToken.tokenSecret + token: tumblr.token, + token_secret: tumblr.tokenSecret }); client.posts('goddess-of-imaginary-light.tumblr.com', { type: 'photo' }, function(err, data) { res.render('api/tumblr', { diff --git a/controllers/contact.js b/controllers/contact.js index be77a6454e..637a54e9c4 100644 --- a/controllers/contact.js +++ b/controllers/contact.js @@ -22,7 +22,7 @@ exports.postContact = function(req, res) { to: sendTo, from: from, subject: subject, - text: body + text: body + '\n\n' + name }); sendgrid.send(email, function(err) {