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

@@ -353,7 +353,7 @@ SocketTopics.sendNotificationToTopicOwner = function(tid, fromuid, notification)
notifications.create({
bodyShort: '[[' + notification + ', ' + results.username + ']]',
path: nconf.get('relative_path') + '/topic/' + results.topicData.slug,
nid: 'topic:' + tid + ':uid:' + fromuid,
nid: 'tid:' + tid + ':uid:' + fromuid,
from: fromuid
}, function(err, notification) {
if (!err && notification) {