fix: die hydra!!!

This commit is contained in:
Julian Lam
2019-02-22 13:45:49 -05:00
parent 9731350812
commit ad6c8dccae

View File

@@ -23,7 +23,7 @@ module.exports = function (Topics) {
var teaserPids = []; var teaserPids = [];
var postData; var postData;
var tidToPost = {}; 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) { topics.forEach(function (topic) {
counts.push(topic && topic.postcount); counts.push(topic && topic.postcount);