mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
fix user icon in notifications
This commit is contained in:
@@ -63,9 +63,7 @@ var utils = require('../public/src/utils');
|
|||||||
if (notification.user.username === '[[global:guest]]') {
|
if (notification.user.username === '[[global:guest]]') {
|
||||||
notification.bodyShort = notification.bodyShort.replace(/([\s\S]*?),[\s\S]*?,([\s\S]*?)/, '$1, [[global:guest]], $2');
|
notification.bodyShort = notification.bodyShort.replace(/([\s\S]*?),[\s\S]*?,([\s\S]*?)/, '$1, [[global:guest]], $2');
|
||||||
}
|
}
|
||||||
}
|
} else if (notification.image === 'brand:logo' || !notification.image) {
|
||||||
|
|
||||||
if (notification.image === 'brand:logo' || !notification.image) {
|
|
||||||
notification.image = meta.config['brand:logo'] || nconf.get('relative_path') + '/logo.png';
|
notification.image = meta.config['brand:logo'] || nconf.get('relative_path') + '/logo.png';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user