From ad6c8dccaed64bd284863748389f58eee0004273 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 22 Feb 2019 13:45:49 -0500 Subject: [PATCH] fix: die hydra!!! --- 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 c4af9cf7ca..907fa9d5e2 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.teaserPost ? this.teaserPost : meta.config.teaserPost; + const teaserPost = (this && this.hasOwnProperty('teaserPost')) ? this.teaserPost : meta.config.teaserPost; topics.forEach(function (topic) { counts.push(topic && topic.postcount);