Return local Sones from core and web interface.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / JsonPage.java
index ada501a..e181a4e 100644 (file)
@@ -27,7 +27,7 @@ import java.net.URI;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
-import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.data.LocalSone;
 import net.pterodactylus.sone.web.WebInterface;
 import net.pterodactylus.sone.web.page.FreenetPage;
 import net.pterodactylus.sone.web.page.FreenetRequest;
@@ -77,11 +77,11 @@ public abstract class JsonPage implements FreenetPage {
        // ACCESSORS
        //
 
-       protected Optional<Sone> getCurrentSone(ToadletContext toadletContext) {
+       protected Optional<LocalSone> getCurrentSone(ToadletContext toadletContext) {
                return webInterface.getCurrentSone(toadletContext);
        }
 
-       protected Optional<Sone> getCurrentSone(ToadletContext toadletContext, boolean createSession) {
+       protected Optional<LocalSone> getCurrentSone(ToadletContext toadletContext, boolean createSession) {
                return webInterface.getCurrentSone(toadletContext, createSession);
        }