mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
fix: incorrect teaserPost logic
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = function (Topics) {
|
||||
var teaserPids = [];
|
||||
var postData;
|
||||
var tidToPost = {};
|
||||
const teaserPost = this ? this.teaserPost : meta.config.teaserPost;
|
||||
const teaserPost = this.teaserPost ? this.teaserPost : meta.config.teaserPost;
|
||||
|
||||
topics.forEach(function (topic) {
|
||||
counts.push(topic && topic.postcount);
|
||||
|
||||
Reference in New Issue
Block a user