Fix avatars of not manually trusted Sones showing when they’re not supposed to.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Dec 2011 13:30:19 +0000 (14:30 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 10 Dec 2011 13:30:19 +0000 (14:30 +0100)
src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java

index 8c7d1e4..36fa42d 100644 (file)
@@ -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;