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