fixed double index in post notification

This commit is contained in:
barisusakli
2014-06-04 16:56:36 -04:00
parent 5ac788565f
commit d1c2c87510

View File

@@ -168,7 +168,7 @@ var async = require('async'),
}
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)) {
path += '/' + (parseInt(results.postIndex, 10) + 1);
}