From 2df19c0ae433ffc092496ecae8876eafc509afe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 1 Nov 2018 10:50:50 -0400 Subject: [PATCH] fix typo --- src/topics/teaser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/topics/teaser.js b/src/topics/teaser.js index f9ad85d8fe..fa65f5d087 100644 --- a/src/topics/teaser.js +++ b/src/topics/teaser.js @@ -30,11 +30,11 @@ module.exports = function (Topics) { if (topic.teaserPid === 'null') { delete topic.teaserPid; } - if (meta.config.teaserPid === 'first') { + if (meta.config.teaserPost === 'first') { teaserPids.push(topic.mainPid); - } else if (meta.config.teaserPid === 'last-post') { + } else if (meta.config.teaserPost === 'last-post') { teaserPids.push(topic.teaserPid || topic.mainPid); - } else if (meta.config.teaserPid === 'last-reply') { + } else if (meta.config.teaserPost === 'last-reply') { teaserPids.push(topic.teaserPid); } }