mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #2745
generate paths on retrieval instead of notification creation also fix follow notification path
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user