This commit is contained in:
barisusakli
2017-03-14 23:03:03 +03:00
parent 25518bdd18
commit 5a2ff8ed0a
12 changed files with 252 additions and 179 deletions

View File

@@ -171,6 +171,7 @@ SocketUser.follow = function (socket, data, callback) {
function (_userData, next) {
userData = _userData;
notifications.create({
type: 'follow',
bodyShort: '[[notifications:user_started_following_you, ' + userData.username + ']]',
nid: 'follow:' + data.uid + ':uid:' + socket.uid,
from: socket.uid,