From 746a7a6de9102aa04bdbcaeab13aa0a005d3c9cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 17 Nov 2010 15:28:04 +0100 Subject: [PATCH] Remove a post via the core. --- src/main/java/net/pterodactylus/sone/web/ajax/DeletePostAjaxPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.7.4