From: David ‘Bombe’ Roden Date: Sat, 19 Oct 2013 15:01:06 +0000 (+0200) Subject: Use isLocal() instead of checking the insert URI. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1e63e32f96c7718bd9df68eaa9a5825bfe589cf0;p=Sone.git Use isLocal() instead of checking the insert URI. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java index d6c2bd7..a812a57 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java @@ -159,7 +159,7 @@ public class GetStatusAjaxPage extends JsonPage { ObjectNode jsonSone = new ObjectNode(instance); jsonSone.put("id", sone.getId()); jsonSone.put("name", SoneAccessor.getNiceName(sone)); - jsonSone.put("local", sone.getInsertUri() != null); + jsonSone.put("local", sone.isLocal()); jsonSone.put("status", sone.getStatus().name()); jsonSone.put("modified", webInterface.getCore().isModifiedSone(sone)); jsonSone.put("locked", webInterface.getCore().isLocked(sone));