Skip to content

Node.js based forum software built for the modern web

Pass a notification path when a user follows another

Julian Lam5f9990299f63
diff --git a/src/socket.io/user.js b/src/socket.io/user.js
index 6621c50242..cb8d80ba87 100644
--- a/src/socket.io/user.js
+++ b/src/socket.io/user.js
@@ -310,7 +310,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) {