fix: die hydra!!!

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

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

Loading…
Cancel
Save