fixes the notification image too, the property was called image not
picture
v1.18.x
barisusakli 11 years ago
parent 4be979f88d
commit 66701afdaa

@ -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);

Loading…
Cancel
Save