add /user/<uid> and /post/<pid> redirects

change notifications to use new redirects
This commit is contained in:
barisusakli
2016-05-05 20:24:03 +03:00
parent b0747ad10e
commit eb0aea6390
15 changed files with 142 additions and 156 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/' + userData.userslug,
path: '/user/' + socket.uid,
mergeId: 'notifications:user_started_following_you'
}, next);
},