Hide non-Gravatar Avatar Search Results (#2549)

This commit is contained in:
Alec Merdler 2017-04-17 15:54:27 -07:00 committed by GitHub
parent e79555ef95
commit b822a25a17

View file

@ -286,7 +286,8 @@ angular.module('quay').directive('entitySearch', function () {
},
'suggestion': function (datum) {
template = '<div class="entity-mini-listing">';
if ((datum.entity.kind == 'user' && !datum.entity.is_robot) || (datum.entity.kind == 'org')) {
if (Config['AVATAR_KIND'] === 'gravatar' &&
((datum.entity.kind == 'user' && !datum.entity.is_robot) || (datum.entity.kind == 'org'))) {
template += '<i class="fa"><img class="avatar-image" src="' +
AvatarService.getAvatar(datum.entity.avatar.hash, 20, 'mm') +
'"></i>';