From e46cbe89b1ada7f1c27f1a87a2ceba3862b87a40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 27 Oct 2013 22:59:08 +0100 Subject: [PATCH] Actually delete the post. --- src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java | 1 + 1 file changed, 1 insertion(+) 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()); } -- 2.7.4