fix unreplied on getTopic

v1.18.x
Baris Soner Usakli 11 years ago
parent 521b3f02be
commit 1b5e44a763

@ -844,7 +844,7 @@ var async = require('async'),
'postcount': topicData.postcount,
'viewcount': topicData.viewcount,
'pageCount': pageCount,
'unreplied': parseInt(topicData.postcount, 10) > 1,
'unreplied': parseInt(topicData.postcount, 10) === 1,
'topic_id': tid,
'expose_tools': privileges.editable ? 1 : 0,
'disableSocialButtons': meta.config.disableSocialButtons !== undefined ? parseInt(meta.config.disableSocialButtons, 10) !== 0 : false,

Loading…
Cancel
Save