package net.pterodactylus.sone.web.ajax;
+import net.pterodactylus.sone.data.LocalSone;
import net.pterodactylus.sone.data.Sone;
import net.pterodactylus.sone.web.WebInterface;
import net.pterodactylus.sone.web.page.FreenetRequest;
if (!webInterface.getCore().getSone(soneId).isPresent()) {
return createErrorJsonObject("invalid-sone-id");
}
- Sone currentSone = getCurrentSone(request.getToadletContext()).get();
+ LocalSone currentSone = getCurrentSone(request.getToadletContext()).get();
if (currentSone == null) {
return createErrorJsonObject("auth-required");
}