From 0ff5c65f43c6f77335157a5d8782f53dfeed1b0c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 24 Oct 2015 22:54:28 -0400 Subject: [PATCH] removed rel path, its in templates --- src/user/notifications.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user/notifications.js b/src/user/notifications.js index 7cc309d1a8..477a9cf53f 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -130,9 +130,9 @@ var async = require('async'), notification.path = pidToPaths[notification.pid] || notification.path || ''; if (notification.nid.startsWith('chat')) { - notification.path = nconf.get('relative_path') + '/chats/' + notification.user.userslug; + notification.path = '/chats/' + notification.user.userslug; } else if (notification.nid.startsWith('follow')) { - notification.path = nconf.get('relative_path') + '/user/' + notification.user.userslug; + notification.path = '/user/' + notification.user.userslug; } notification.datetimeISO = utils.toISOString(notification.datetime); @@ -176,7 +176,7 @@ var async = require('async'), var postIndex = utils.isNumber(results.indices[index]) ? parseInt(results.indices[index], 10) + 1 : null; if (slug && postIndex) { - pidToPaths[pid] = nconf.get('relative_path') + '/topic/' + slug + '/' + postIndex; + pidToPaths[pid] = '/topic/' + slug + '/' + postIndex; } });