mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +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 = '';
|
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 = '';
|
var x, html = '';
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ var async = require('async'),
|
|||||||
// Add default values to data Object if not already set
|
// Add default values to data Object if not already set
|
||||||
var defaults = {
|
var defaults = {
|
||||||
text: '',
|
text: '',
|
||||||
path: null,
|
path: '',
|
||||||
importance: 5,
|
importance: 5,
|
||||||
datetime: Date.now(),
|
datetime: Date.now(),
|
||||||
uniqueId: utils.generateUUID()
|
uniqueId: utils.generateUUID()
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ module.exports = function(User) {
|
|||||||
if (userNameChanged) {
|
if (userNameChanged) {
|
||||||
notifications.create({
|
notifications.create({
|
||||||
text: '[[user:username_taken_workaround, ' + userData.username + ']]',
|
text: '[[user:username_taken_workaround, ' + userData.username + ']]',
|
||||||
picture: 'brand:logo',
|
image: 'brand:logo',
|
||||||
datetime: Date.now()
|
datetime: Date.now()
|
||||||
}, function(nid) {
|
}, function(nid) {
|
||||||
notifications.push(nid, uid);
|
notifications.push(nid, uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user