mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
first pass #1720, updating existing calls to notifications.create, backwards compatibility in case plugins create notifications too.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user