/*
- * Sone - BookmarksPage.java - Copyright © 2011–2013 David Roden
+ * Sone - BookmarksPage.java - Copyright © 2011–2016 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
* {@inheritDoc}
*/
@Override
- protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
- super.processTemplate(request, templateContext);
+ protected void handleRequest(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);