465 social share with extensions #492

Merged
bones7242 merged 10 commits from 465-social-share-with-extensions into master 2018-06-27 18:51:51 +02:00
Showing only changes of commit b2053a219e - Show all commits

View file

@ -7,12 +7,7 @@ function headersMatchesSocialBotList (headers) {
'facebookexternalhit': 1,
'Twitterbot' : 1,
};
if (socialBotList[userAgent]) {
logger.debug('headers on request matched a social bot.');
return true;
} else {
return false;
}
return socialBotList[userAgent];
}
function clientAcceptsHtml ({accept}) {