From: David ‘Bombe’ Roden Date: Tue, 26 Oct 2010 14:30:20 +0000 (+0200) Subject: Add “local” member. X-Git-Tag: 0.1-RC1~19 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4623504d164c0f3cf870f1b5c5707fb058657e71;p=Sone.git Add “local” member. --- diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index 60e2e9b..f1ee6e5 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -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);