From 7514e02dc51326045f03dd490469b5fd90b80df1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 18 Jan 2011 08:39:41 +0100 Subject: [PATCH] Use the core to check for the locality of a Sone. --- src/main/java/net/pterodactylus/sone/template/SoneAccessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index 52424e6..119a28e 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -74,7 +74,7 @@ public class SoneAccessor extends ReflectionAccessor { if (member.equals("niceName")) { return getNiceName(sone); } else if (member.equals("local")) { - return sone.getInsertUri() != null; + return core.isLocalSone(sone); } else if (member.equals("friend")) { Sone currentSone = (Sone) dataProvider.get("currentSone"); return (currentSone != null) && currentSone.hasFriend(sone.getId()); -- 2.7.4