Skip to content

Node.js based forum software built for the modern web

closes #4669

barisusakli38d1bde89555
diff --git a/src/categories/recentreplies.js b/src/categories/recentreplies.js
index f03f65e256..29703ed76f 100644
--- a/src/categories/recentreplies.js
+++ b/src/categories/recentreplies.js
@@ -108,6 +108,11 @@ module.exports = function(Categories) {
},
function(_topicData, next) {
topicData = _topicData;
+ topicData.forEach(function(topic) {
+ if (topic) {
+ topic.teaserPid = topic.teaserPid || topic.mainPid;
+ }
+ });
topics.getTeasers(_topicData, next);
},
function (teasers, next) {