if (!post.getSone().equals(currentSone)) {
return createErrorJsonObject("not-authorized");
}
- currentSone.removePost(post);
- return new JsonObject().put("success", true);
+ webInterface.getCore().deletePost(post);
+ return createSuccessJsonObject();
}
}