|
|
@ -709,7 +709,6 @@ var async = require('async'),
|
|
|
|
topicData.categoryName = topicInfo.categoryData.name;
|
|
|
|
topicData.categoryName = topicInfo.categoryData.name;
|
|
|
|
topicData.categorySlug = topicInfo.categoryData.slug;
|
|
|
|
topicData.categorySlug = topicInfo.categoryData.slug;
|
|
|
|
topicData.badgeclass = (topicInfo.hasread && parseInt(current_user, 10) !== 0) ? '' : 'badge-important';
|
|
|
|
topicData.badgeclass = (topicInfo.hasread && parseInt(current_user, 10) !== 0) ? '' : 'badge-important';
|
|
|
|
topicData.teaser_text = topicInfo.teaserInfo.text || '',
|
|
|
|
|
|
|
|
topicData.teaser_username = topicInfo.teaserInfo.username || '';
|
|
|
|
topicData.teaser_username = topicInfo.teaserInfo.username || '';
|
|
|
|
topicData.teaser_userslug = topicInfo.teaserInfo.userslug || '';
|
|
|
|
topicData.teaser_userslug = topicInfo.teaserInfo.userslug || '';
|
|
|
|
topicData.teaser_userpicture = topicInfo.teaserInfo.picture || gravatar.url('', {}, https = nconf.get('https'));
|
|
|
|
topicData.teaser_userpicture = topicInfo.teaserInfo.picture || gravatar.url('', {}, https = nconf.get('https'));
|
|
|
@ -830,7 +829,6 @@ var async = require('async'),
|
|
|
|
topicData['lock-icon'] = parseInt(topicData.locked, 10) === 1 ? 'fa-lock' : 'none';
|
|
|
|
topicData['lock-icon'] = parseInt(topicData.locked, 10) === 1 ? 'fa-lock' : 'none';
|
|
|
|
|
|
|
|
|
|
|
|
topicData.badgeclass = hasRead ? '' : 'badge-important';
|
|
|
|
topicData.badgeclass = hasRead ? '' : 'badge-important';
|
|
|
|
topicData.teaser_text = teaser.text || '';
|
|
|
|
|
|
|
|
topicData.teaser_username = teaser.username || '';
|
|
|
|
topicData.teaser_username = teaser.username || '';
|
|
|
|
topicData.teaser_userslug = teaser.userslug || '';
|
|
|
|
topicData.teaser_userslug = teaser.userslug || '';
|
|
|
|
topicData.userslug = teaser.userslug || '';
|
|
|
|
topicData.userslug = teaser.userslug || '';
|
|
|
|