fix: incorrect teaserPost logic

v1.18.x
Julian Lam 6 years ago
parent 43c4eb2350
commit 9731350812

@ -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);

Loading…
Cancel
Save