making sure to pass in userData to notifications.create on user follow

v1.18.x
Julian Lam 10 years ago
parent 027f9e5a83
commit eee2aa8051

@ -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,
user: userData
}, next);
},
function(notification, next) {

Loading…
Cancel
Save