From: David ‘Bombe’ Roden Date: Tue, 18 Jan 2011 07:39:41 +0000 (+0100) Subject: Use the core to check for the locality of a Sone. X-Git-Tag: 0.4.2^2~29 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=7514e02dc51326045f03dd490469b5fd90b80df1 Use the core to check for the locality of a Sone. --- 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());