Add unit test for delete post page and fix bug
[Sone.git] / src / main / java / net / pterodactylus / sone / web / DeletePostPage.java
index c2bae56..9079dce 100644 (file)
@@ -75,7 +75,7 @@ public class DeletePostPage extends SoneTemplatePage {
                        } else if (request.getHttpRequest().isPartSet("abortDelete")) {
                                throw new RedirectException(returnPage);
                        }
-                       templateContext.set("post", post);
+                       templateContext.set("post", post.get());
                        templateContext.set("returnPage", returnPage);
                }
        }