Add unit test for delete post command and actually delete the post
[Sone.git] / src / main / java / net / pterodactylus / sone / fcp / DeletePostCommand.java
index e68cbb5..3cfb102 100644 (file)
@@ -51,6 +51,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());
        }