From 68b252f202ca19d30d56666ec1b087b5fd17c0c6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 27 Sep 2015 20:26:17 -0400 Subject: [PATCH] notifications dropdown --- src/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notifications.js b/src/notifications.js index 67d7b68695..1e2e71875e 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -55,11 +55,11 @@ var async = require('async'), } if (notification.from && !notification.image) { - User.getUserFields(notification.from, ['username', 'userslug', 'picture'], function(err, userData) { + User.getUserFields(notification.from, ['username', 'userslug', 'picture', 'icon:bgColor', 'icon:text'], function(err, userData) { if (err) { return next(err); } - notification.image = userData.picture; + notification.image = userData.picture || null; notification.user = userData; next(null, notification); });