Node.js based forum software built for the modern web
add tid/uid to teaser
Barış Soner Uşaklı7218a9d8cb96
diff --git a/src/categories/recentreplies.js b/src/categories/recentreplies.jsindex 7b04974659..cb7056bfbb 100644--- a/src/categories/recentreplies.js+++ b/src/categories/recentreplies.js@@ -116,9 +116,10 @@ module.exports = function (Categories) {if (teaser) {teaser.cid = topicData[index].cid;teaser.parentCids = cidToRoot[teaser.cid];- teaser.tid = undefined;- teaser.uid = undefined;+ teaser.tid = topicData[index].tid;+ teaser.uid = topicData[index].uid;teaser.topic = {+ tid: topicData[index].tid,slug: topicData[index].slug,title: topicData[index].title,};diff --git a/src/controllers/helpers.js b/src/controllers/helpers.jsindex a4a2287160..c17e701b79 100644--- a/src/controllers/helpers.js+++ b/src/controllers/helpers.js@@ -396,6 +396,7 @@ helpers.setCategoryTeaser = function (category) {url: `${nconf.get('relative_path')}/post/${post.pid}`,timestampISO: post.timestampISO,pid: post.pid,+ tid: post.tid,index: post.index,topic: post.topic,user: post.user,