generate paths on retrieval instead of notification creation
also fix follow notification path
This commit is contained in:
barisusakli
2015-02-19 18:14:38 -05:00
parent 82543bdeee
commit 756d03fa62
4 changed files with 37 additions and 29 deletions

View File

@@ -294,7 +294,6 @@ SocketUser.follow = function(socket, data, callback) {
notifications.create({
bodyShort: '[[notifications:user_started_following_you, ' + userData.username + ']]',
path: nconf.get('relative_path') + '/user/' + userData.userslug,
nid: 'follow:' + data.uid + ':uid:' + socket.uid,
from: socket.uid
}, function(err, notification) {