notification fixes

made post notifications unique per post so they dont overwrite other
types.
This commit is contained in:
barisusakli
2014-09-12 16:35:30 -04:00
parent 9466d7ced4
commit b3d9db10f2
6 changed files with 31 additions and 6 deletions

View File

@@ -198,7 +198,7 @@ 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:uid:' + socket.uid,
nid: 'follow:' + data.uid + ':uid:' + socket.uid,
from: socket.uid
}, function(err, notification) {
if (!err && notification) {