mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 14:16:25 +02:00
fix teaserTimestamp
This commit is contained in:
@@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user