passing in a picture into notifications now

This commit is contained in:
Julian Lam
2014-02-15 15:43:44 -05:00
parent ef45ae9ba3
commit 9e64f4e303
6 changed files with 34 additions and 10 deletions

View File

@@ -717,7 +717,8 @@ var bcrypt = require('bcryptjs'),
notifications.create({
text: message,
path: nconf.get('relative_path') + '/topic/' + slug + '#' + pid,
uniqueId: 'topic:' + tid
uniqueId: 'topic:' + tid,
from: uid
}, function(nid) {
notifications.push(nid, followers);
});
@@ -1029,6 +1030,7 @@ var bcrypt = require('bcryptjs'),
getNotifications('uid:' + uid + ':notifications:read', 0, 9, null, next);
}
}, function(err, notifications) {
console.log(notifications);
if(err) {
return calback(err);
}