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

@@ -284,7 +284,7 @@ var async = require('async'),
bodyShort: '[[notifications:user_posted_to, ' + results.username + ', ' + results.topic.title + ']]',
bodyLong: results.postContent,
pid: pid,
nid: 'topic:' + tid + ':uid:' + uid,
nid: 'tid:' + tid + ':pid:' + pid + ':uid:' + uid,
tid: tid,
from: uid
}, function(err, notification) {