mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
fixed double index in post notification
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user