Add function that converts a Sone into its insert URI.
[Sone.git] / src / main / java / net / pterodactylus / sone / fcp / LockSoneCommand.java
index 2a0c81a..306d93a 100644 (file)
@@ -50,7 +50,7 @@ public class LockSoneCommand 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().lockSone(sone);
                return new Response("SoneLocked", new SimpleFieldSetBuilder().put("Sone", sone.getId()).get());
        }