X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FCreateSonePage.java;h=e5f176f45926edcbbfad9dba6b68acccd3fa5b26;hb=4c01b14af989a2831212ed79410ed723ba334c4a;hp=d55624f98bf2da40dbe8cf307e9ef0104c5158e4;hpb=2c5b76a2fbce16ef33f079a3de9ae9fc9a9d30b8;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java index d55624f..e5f176f 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java @@ -95,7 +95,7 @@ public class CreateSonePage extends SoneTemplatePage { @Override protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); - List ownIdentitiesWithoutSone = getOwnIdentitiesWithoutSone(webInterface.core()); + List ownIdentitiesWithoutSone = getOwnIdentitiesWithoutSone(webInterface.getCore()); template.set("identitiesWithoutSone", ownIdentitiesWithoutSone); if (request.getMethod() == Method.POST) { String id = request.getHttpRequest().getPartAsStringFailsafe("identity", 44); @@ -111,8 +111,7 @@ public class CreateSonePage extends SoneTemplatePage { return; } /* create Sone. */ - webInterface.core().getIdentityManager().addContext(selectedIdentity, "Sone"); - Sone sone = webInterface.core().createSone(selectedIdentity); + Sone sone = webInterface.getCore().createSone(selectedIdentity); if (sone == null) { logger.log(Level.SEVERE, "Could not create Sone for OwnIdentity: %s", selectedIdentity); /* TODO - go somewhere else */