Add “local” member.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 26 Oct 2010 14:30:20 +0000 (16:30 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 26 Oct 2010 14:30:20 +0000 (16:30 +0200)
src/main/java/net/pterodactylus/sone/template/SoneAccessor.java

index 60e2e9b..f1ee6e5 100644 (file)
@@ -65,6 +65,8 @@ public class SoneAccessor extends ReflectionAccessor {
                Sone sone = (Sone) object;
                if (member.equals("niceName")) {
                        return getNiceName(sone);
+               } else if (member.equals("local")) {
+                       return sone.getInsertUri() != null;
                } else if (member.equals("friend")) {
                        Sone currentSone = (Sone) dataProvider.getData("currentSone");
                        return (currentSone != null) && currentSone.hasFriend(sone);