mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: die hydra!!!
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user