From 97313508121b7d924de2776ce29a4bf9eb4681e8 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 22 Feb 2019 12:33:27 -0500 Subject: [PATCH] fix: incorrect teaserPost logic --- src/topics/teaser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/teaser.js b/src/topics/teaser.js index 2ff12db4a8..c4af9cf7ca 100644 --- a/src/topics/teaser.js +++ b/src/topics/teaser.js @@ -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);