From: David ‘Bombe’ Roden Date: Sun, 27 Oct 2013 21:59:08 +0000 (+0100) Subject: Actually delete the post. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e46cbe89b1ada7f1c27f1a87a2ceba3862b87a40;p=Sone.git Actually delete the post. --- diff --git a/src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java b/src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java index b9a0faa..7ce8238 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java +++ b/src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java @@ -48,6 +48,7 @@ public class DeletePostCommand extends AbstractSoneCommand { if (!post.getSone().isLocal()) { return new ErrorResponse(401, "Not allowed."); } + getCore().deletePost(post); return new Response("PostDeleted", new SimpleFieldSetBuilder().get()); }