From: David ‘Bombe’ Roden Date: Sat, 10 Dec 2011 13:30:19 +0000 (+0100) Subject: Fix avatars of not manually trusted Sones showing when they’re not supposed to. X-Git-Tag: 0.8^2~41 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=62b87298ae2752c18e8152879b55f107b3fde66b Fix avatars of not manually trusted Sones showing when they’re not supposed to. --- diff --git a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java index 8c7d1e4..36fa42d 100644 --- a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java @@ -89,7 +89,7 @@ public class ProfileAccessor extends ReflectionAccessor { if ((showCustomAvatars == ShowCustomAvatars.MANUALLY_TRUSTED) && (trust.getExplicit() != null) && (trust.getExplicit() > 0)) { return avatarId; } - if ((showCustomAvatars == ShowCustomAvatars.TRUSTED) && ((trust.getExplicit() != null) && (trust.getExplicit() > 0)) || ((trust.getImplicit() != null) && (trust.getImplicit() > 0))) { + if ((showCustomAvatars == ShowCustomAvatars.TRUSTED) && (((trust.getExplicit() != null) && (trust.getExplicit() > 0)) || ((trust.getImplicit() != null) && (trust.getImplicit() > 0)))) { return avatarId; } return null;