temp fix for #2994

v1.18.x
barisusakli 10 years ago
parent 039dab829a
commit 427dda654a

@ -284,8 +284,15 @@ define('composer', [
composer.bsEnvironment = utils.findBootstrapEnvironment();
// see
// https://github.com/NodeBB/NodeBB/issues/2994 and
// https://github.com/NodeBB/NodeBB/issues/1951
// remove when 1951 is resolved
var title = postData.title.replace(/%/g, '%').replace(/,/g, ',');
var data = {
title: postData.title,
title: title,
mobile: composer.bsEnvironment === 'xs' || composer.bsEnvironment === 'sm',
allowTopicsThumbnail: allowTopicsThumbnail,
isTopicOrMain: isTopic || isMain,

Loading…
Cancel
Save