mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
@@ -208,10 +208,8 @@ function sendChatNotification(fromuid, touid, username, message) {
|
||||
if (!module.parent.exports.isUserOnline(touid)) {
|
||||
var notifText = '[[notifications:new_message_from, ' + username + ']]';
|
||||
notifications.create({
|
||||
body: {
|
||||
short: notifText,
|
||||
long: message
|
||||
},
|
||||
bodyShort: notifText,
|
||||
bodyLong: message,
|
||||
path: 'javascript:app.openChat('' + username + '', ' + fromuid + ');',
|
||||
uniqueId: 'notification_' + fromuid + '_' + touid,
|
||||
from: fromuid
|
||||
|
||||
Reference in New Issue
Block a user