Store the insert URI in the information used for inserting.
[Sone.git] / src / main / java / net / pterodactylus / sone / fcp / UnlockSoneCommand.java
index a187576..489b6a8 100644 (file)
@@ -50,7 +50,7 @@ public class UnlockSoneCommand extends AbstractSoneCommand {
 
        @Override
        public Response execute(SimpleFieldSet parameters, Bucket data, AccessType accessType) throws FcpException {
-               Sone sone = getSone(parameters, "Sone", true, true);
+               Sone sone = getMandatoryLocalSone(parameters, "Sone");
                getCore().unlockSone(sone);
                return new Response("SoneUnlocked", new SimpleFieldSetBuilder().put("Sone", sone.getId()).get());
        }