From d1c2c875108cac532560d5e1f6d772fbd621d19e Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 4 Jun 2014 16:56:36 -0400 Subject: [PATCH] fixed double index in post notification --- src/user/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }