Skip to content

Node.js based forum software built for the modern web

added a path to follow notification

Julian Lam82f7ca5e0fd7
diff --git a/src/socket.io/user.js b/src/socket.io/user.js
index 7170cf27d0..0771d44066 100644
--- a/src/socket.io/user.js
+++ b/src/socket.io/user.js
@@ -293,7 +293,8 @@ SocketUser.follow = function(socket, data, callback) {
notifications.create({
bodyShort: '[[notifications:user_started_following_you, ' + userData.username + ']]',
nid: 'follow:' + data.uid + ':uid:' + socket.uid,
- from: socket.uid
+ from: socket.uid,
+ path: 'user/' + userData.userslug
}, next);
},
function(notification, next) {