Make post reply returned by provider optional.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ViewPostPage.java
index 98b2603..ca78d99 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - ViewPostPage.java - Copyright © 2010–2012 David Roden
+ * Sone - ViewPostPage.java - Copyright © 2010–2013 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -54,7 +54,7 @@ public class ViewPostPage extends SoneTemplatePage {
        @Override
        protected String getPageTitle(FreenetRequest request) {
                String postId = request.getHttpRequest().getParam("post");
-               Post post = webInterface.getCore().getPost(postId, false);
+               Post post = webInterface.getCore().getPost(postId);
                String title = "";
                if ((post != null) && (post.getSone() != null)) {
                        title = post.getText().substring(0, Math.min(20, post.getText().length())) + "…";