first pass #1720, updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too.

This commit is contained in:
Julian Lam
2014-06-20 16:54:34 -04:00
parent 454c05c391
commit d257632878
6 changed files with 53 additions and 31 deletions

View File

@@ -163,7 +163,10 @@ module.exports = function(User) {
if (userNameChanged) {
notifications.create({
text: '[[user:username_taken_workaround, ' + userData.username + ']]',
body: {
short: '[[user:username_taken_workaround, ' + userData.username + ']]',
long: ''
},
image: 'brand:logo',
datetime: Date.now()
}, function(nid) {