Merge pull request #4510 from rbeer/teaser-pid

Add pid to teaser ajaxify data
This commit is contained in:
Barış Soner Uşaklı
2016-04-10 17:48:04 +03:00

View File

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