misc fixes

handle spider uids properly
This commit is contained in:
Barış Soner Uşaklı
2018-11-12 00:20:44 -05:00
parent afa84023a2
commit 69bb3293ee
30 changed files with 122 additions and 104 deletions

View File

@@ -10,7 +10,7 @@ social.postSharing = null;
social.getPostSharing = function (callback) {
if (social.postSharing) {
return callback(null, social.postSharing);
return setImmediate(callback, null, social.postSharing);
}
var networks = [
@@ -55,9 +55,7 @@ social.getActivePostSharing = function (callback) {
social.getPostSharing(next);
},
function (networks, next) {
networks = networks.filter(function (network) {
return network && network.activated;
});
networks = networks.filter(network => network && network.activated);
next(null, networks);
},
], callback);