X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FDeleteReplyCommand.java;h=6a018facdae32fb75f2239b9e1c210c87b694536;hb=8775a0be01123cc2b3375cb1f3f61a260d29b1ad;hp=e9c09261776245ce0a59aec59569bf60d0c453b2;hpb=6e9a43ccd93ae125720547c0fe421dc81a54ba90;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java b/src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java index e9c0926..6a018fa 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/DeleteReplyCommand.java @@ -1,5 +1,5 @@ /* - * Sone - DeleteReplyCommand.java - Copyright © 2011–2013 David Roden + * Sone - DeleteReplyCommand.java - Copyright © 2011–2016 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -51,6 +51,7 @@ public class DeleteReplyCommand extends AbstractSoneCommand { if (!reply.getSone().isLocal()) { return new ErrorResponse(401, "Not allowed."); } + getCore().deleteReply(reply); return new Response("ReplyDeleted", new SimpleFieldSetBuilder().get()); }