mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 01:09:44 +02:00
add tid/uid to teaser
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user