fixing bug in topics causing meta tags to revert on subsequent refresh

This commit is contained in:
psychobunny
2014-03-02 22:10:57 -05:00
parent dbbbe21883
commit 8df33e65ac
2 changed files with 2 additions and 5 deletions

View File

@@ -52,7 +52,6 @@ topicsController.get = function(req, res, next) {
});
},
function (topicData, next) {
var lastMod = topicData.timestamp,
description = (function() {
var content = '';
@@ -75,8 +74,6 @@ topicsController.get = function(req, res, next) {
}
}
next(null, topicData);
var ogImageUrl = meta.config['brand:logo'];
if(ogImageUrl && ogImageUrl.indexOf('http') === -1) {
ogImageUrl = nconf.get('url') + ogImageUrl;
@@ -140,7 +137,8 @@ topicsController.get = function(req, res, next) {
href: nconf.get('url') + '/category/' + topicData.category.slug
}
];
next(null, topicData);
}
], function (err, posts) {
if (err) {