mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
closes #1559
fixes the notification image too, the property was called image not picture
This commit is contained in:
@@ -25,7 +25,7 @@ define(['sounds'], function(sound) {
|
||||
image = '';
|
||||
}
|
||||
|
||||
return '<li class="' + (notification.readClass || '') + '"><a href="' + notification.path + '">' + image + '<span class="pull-right relTime">' + utils.relativeTime(notification.datetime, true) + '</span><span class="text">' + notification.text + '</span></a></li>';
|
||||
return '<li class="' + (notification.readClass || '') + '"><a href="' + (notification.path || '#') + '">' + image + '<span class="pull-right relTime">' + utils.relativeTime(notification.datetime, true) + '</span><span class="text">' + notification.text + '</span></a></li>';
|
||||
}
|
||||
|
||||
var x, html = '';
|
||||
|
||||
@@ -83,7 +83,7 @@ var async = require('async'),
|
||||
// Add default values to data Object if not already set
|
||||
var defaults = {
|
||||
text: '',
|
||||
path: null,
|
||||
path: '',
|
||||
importance: 5,
|
||||
datetime: Date.now(),
|
||||
uniqueId: utils.generateUUID()
|
||||
|
||||
@@ -154,7 +154,7 @@ module.exports = function(User) {
|
||||
if (userNameChanged) {
|
||||
notifications.create({
|
||||
text: '[[user:username_taken_workaround, ' + userData.username + ']]',
|
||||
picture: 'brand:logo',
|
||||
image: 'brand:logo',
|
||||
datetime: Date.now()
|
||||
}, function(nid) {
|
||||
notifications.push(nid, uid);
|
||||
|
||||
Reference in New Issue
Block a user