fix teaserTimestamp

v1.18.x
barisusakli 9 years ago
parent 392814824e
commit c7ca045d0b

@ -66,7 +66,7 @@ categoriesController.list = function(req, res, next) {
if (category && Array.isArray(category.posts) && category.posts.length) { if (category && Array.isArray(category.posts) && category.posts.length) {
category.teaser = { category.teaser = {
url: nconf.get('relative_path') + '/topic/' + category.posts[0].topic.slug + '/' + category.posts[0].index, url: nconf.get('relative_path') + '/topic/' + category.posts[0].topic.slug + '/' + category.posts[0].index,
timestampISO: category.posts[0].timestamp timestampISO: category.posts[0].timestampISO
}; };
} }
}); });

Loading…
Cancel
Save