if (avatarId == null) {
return null;
}
- if (core.getImage(avatarId, false) == null) {
+ if (!profile.getSone().getImageByInternalId(avatarId).isPresent()) {
/* avatar ID but no matching image? show nothing. */
return null;
}
/* always show your own avatars. */
return avatarId;
}
- ShowCustomAvatars showCustomAvatars = currentSone.getOptions().<ShowCustomAvatars> getEnumOption("ShowCustomAvatars").get();
+ ShowCustomAvatars showCustomAvatars = currentSone.getOptions().getShowCustomAvatars();
if (showCustomAvatars == ShowCustomAvatars.NEVER) {
return null;
}