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 = '';
}
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);

Loading…
Cancel
Save