From 598c47b77fbe7dd692d7bfd9245075bb194bb4bc Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 20 Sep 2016 00:04:05 +0300 Subject: [PATCH] fix user icon in notifications --- src/notifications.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/notifications.js b/src/notifications.js index 4b3111fdad..e4df61f260 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -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'; } });