Change AvatarProvider to accept IdentifiedUser
This concept is more likely to survive the upcoming account UUID refactoring being done to support external account management systems. It also gives the provider more information about the account, such as the complete list of email addresses or groups the user is a member of. This may make it easier for the provider implementation to select the correct image. Change-Id: I2056914425e52e60cc8591c83d6746faca3d491c
This commit is contained in:
@@ -44,7 +44,7 @@ class GetAvatar implements RestReadView<AccountResource> {
|
||||
throw new ResourceNotFoundException();
|
||||
}
|
||||
|
||||
String url = impl.getUrl(rsrc.getUser().getAccount(), size);
|
||||
String url = impl.getUrl(rsrc.getUser(), size);
|
||||
if (Strings.isNullOrEmpty(url)) {
|
||||
throw new ResourceNotFoundException();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user