projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add unit test for delete post command and actually delete the post
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
fcp
/
DeletePostCommand.java
diff --git
a/src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java
b/src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java
index
e68cbb5
..
3cfb102
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java
+++ b/
src/main/java/net/pterodactylus/sone/fcp/DeletePostCommand.java
@@
-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());
}