From: David ‘Bombe’ Roden Date: Wed, 7 Dec 2011 15:13:55 +0000 (+0100) Subject: Always show your own avatar. X-Git-Tag: 0.7.6^2~1^2~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0e3f55050a9a077723d0a355764bd7cf6ffa1860;p=Sone.git Always show your own avatar. --- diff --git a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java index 97972c7..f6056fa 100644 --- a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java @@ -60,6 +60,10 @@ public class ProfileAccessor extends ReflectionAccessor { /* not logged in? don’t show custom avatars, then. */ return null; } + if (profile.getSone().equals(currentSone)) { + /* always show your own avatar. */ + return profile.getAvatar(); + } ShowCustomAvatars showCustomAvatars = currentSone.getOptions(). getEnumOption("ShowCustomAvatars").get(); if (showCustomAvatars == ShowCustomAvatars.NEVER) { return null;