From 893ce7f1c22eec7e7fd8797f7f62f0ac08289585 Mon Sep 17 00:00:00 2001 From: Dave Lester Date: Wed, 1 May 2013 20:25:50 -0700 Subject: [PATCH] Adds callback to fb comments async series. --- controllers/backpack.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/controllers/backpack.js b/controllers/backpack.js index 85a12ff7..dd297040 100644 --- a/controllers/backpack.js +++ b/controllers/backpack.js @@ -451,9 +451,11 @@ exports.facebookSharing = function (request, response, callback) { if (error) { request.flash('error', 'There was an error posting a Facebook comment to your shared badge.'); callback('There was an error posting a Facebook comment to your shared badge.', null); - } - }); - } + } else { + callback(null, response); + } + }); + } }, function(callback){ // if FB automatic push was checked: