fix user icon in notifications

v1.18.x
barisusakli 8 years ago
parent 4ce8e2224a
commit 598c47b77f

@ -63,9 +63,7 @@ var utils = require('../public/src/utils');
if (notification.user.username === '[[global:guest]]') {
notification.bodyShort = notification.bodyShort.replace(/([\s\S]*?),[\s\S]*?,([\s\S]*?)/, '$1, [[global:guest]], $2');
}
}
if (notification.image === 'brand:logo' || !notification.image) {
} else if (notification.image === 'brand:logo' || !notification.image) {
notification.image = meta.config['brand:logo'] || nconf.get('relative_path') + '/logo.png';
}
});

Loading…
Cancel
Save