fix: incorrect teaserPost logic

This commit is contained in:
Julian Lam
2019-02-22 12:33:27 -05:00
parent 43c4eb2350
commit 9731350812

View File

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