Actually delete the post.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 27 Oct 2013 21:59:08 +0000 (22:59 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:47 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java

index b9a0faa..7ce8238 100644 (file)
@@ -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());
        }