fixed double index in post notification

v1.18.x
barisusakli 11 years ago
parent 5ac788565f
commit d1c2c87510

@ -168,7 +168,7 @@ var async = require('async'),
} }
var message = '[[notifications:user_made_post, ' + results.username + ']]'; var message = '[[notifications:user_made_post, ' + results.username + ']]';
var path = nconf.get('relative_path') + '/topic/' + results.slug + '/' + results.postIndex; var path = nconf.get('relative_path') + '/topic/' + results.slug;
if (parseInt(results.postIndex, 10)) { if (parseInt(results.postIndex, 10)) {
path += '/' + (parseInt(results.postIndex, 10) + 1); path += '/' + (parseInt(results.postIndex, 10) + 1);
} }

Loading…
Cancel
Save