Process Sone templates in their own method
[Sone.git] / src / main / java / net / pterodactylus / sone / web / BookmarksPage.java
index 373ff18..982d335 100644 (file)
@@ -61,14 +61,13 @@ public class BookmarksPage extends SoneTemplatePage {
         * {@inheritDoc}
         */
        @Override
-       protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
-               super.processTemplate(request, templateContext);
+       protected void processSonePage(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
                Set<Post> allPosts = webInterface.getCore().getBookmarkedPosts();
                Collection<Post> loadedPosts = Collections2.filter(allPosts, new Predicate<Post>() {
 
                        @Override
                        public boolean apply(Post post) {
-                               return post.getSone() != null;
+                               return post.isLoaded();
                        }
                });
                List<Post> sortedPosts = new ArrayList<Post>(loadedPosts);