Skip to content

Commit

Permalink
add tid/uid to teaser
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Apr 12, 2024
1 parent 1899079 commit 7218a9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/categories/recentreplies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
1 change: 1 addition & 0 deletions src/controllers/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7218a9d

Please sign in to comment.