change /user/uid to /uid/:uid

so it doesn't conflict with actual user routes
was causing incorrect redirects if a user had a numeric userslug
@julianlam
This commit is contained in:
barisusakli
2016-05-06 09:41:30 +03:00
parent 0287703047
commit 702597d759
3 changed files with 9 additions and 5 deletions

View File

@@ -155,7 +155,7 @@ SocketUser.follow = function(socket, data, callback) {
bodyShort: '[[notifications:user_started_following_you, ' + userData.username + ']]',
nid: 'follow:' + data.uid + ':uid:' + socket.uid,
from: socket.uid,
path: '/user/' + socket.uid,
path: '/uid/' + socket.uid,
mergeId: 'notifications:user_started_following_you'
}, next);
},