Merge branch 'mark-as-read' into next
[Sone.git] / src / main / java / net / pterodactylus / sone / template / SoneAccessor.java
index 911f5cd..27b4c24 100644 (file)
@@ -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) templateContext.get("currentSone");
                        return (currentSone != null) && currentSone.hasFriend(sone.getId());