From: David ‘Bombe’ Roden Date: Wed, 17 Nov 2010 14:28:04 +0000 (+0100) Subject: Remove a post via the core. X-Git-Tag: 0.3-RC1~28 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=746a7a6de9102aa04bdbcaeab13aa0a005d3c9cf;p=Sone.git Remove a post via the core. --- diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/DeletePostAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/DeletePostAjaxPage.java index 603c013..d874493 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/DeletePostAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/DeletePostAjaxPage.java @@ -60,7 +60,7 @@ public class DeletePostAjaxPage extends JsonPage { if (!post.getSone().equals(currentSone)) { return createErrorJsonObject("not-authorized"); } - currentSone.removePost(post); + webInterface.getCore().deletePost(post); return createSuccessJsonObject(); }