Skip to content

Node.js based forum software built for the modern web

fixed double index in post notification

barisusaklid1c2c875108c
diff --git a/src/user/notifications.js b/src/user/notifications.js
index 8b34d45cbc..2fcd6f0924 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -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);
}