From 8c9a3ccefc81206f3a381d365e5909405169aa65 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 4 Dec 2015 14:35:48 +0100 Subject: Do not request an avatar if there is none --- settings/js/users/users.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'settings/js/users/users.js') diff --git a/settings/js/users/users.js b/settings/js/users/users.js index aeecac7b243..2f8a964bafb 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -64,8 +64,12 @@ var UserList = { /** * Avatar or placeholder */ - if ($tr.find('div.avatardiv').length){ - $('div.avatardiv', $tr).avatar(user.name, 32, undefined, undefined, undefined, user.displayname); + if ($tr.find('div.avatardiv').length) { + if (user.isAvatarAvailable === true) { + $('div.avatardiv', $tr).avatar(user.name, 32, undefined, undefined, undefined, user.displayname); + } else { + $('div.avatardiv', $tr).imageplaceholder(user.displayname); + } } /** -- cgit v1.2.3