From 006496efe350ed6d1dd82060b80c174b6a9635c2 Mon Sep 17 00:00:00 2001 From: Raphael Beer Date: Sun, 10 Apr 2016 14:09:33 +0200 Subject: [PATCH] Add pid to teaser ajaxify data --- src/controllers/categories.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/categories.js b/src/controllers/categories.js index 7ed087c704..aa882b9b43 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -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 }; } });