// TEMPLATEPAGE METHODS
//
- /**
- * {@inheritDoc}
- */
@Override
protected String getPageTitle(FreenetRequest request) {
String soneId = request.getHttpRequest().getParam("sone");
return webInterface.getL10n().getString("Page.ViewSone.Page.TitleWithoutSone");
}
- /**
- * {@inheritDoc}
- */
@Override
protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
return;
}
List<Post> sonePosts = sone.get().getPosts();
- sonePosts.addAll(webInterface.getCore().getDirectedPosts(sone.get().getId()));
+ sonePosts.addAll(webInterface.getCore().getDatabase().getDirectedPosts(sone.get().getId()));
Collections.sort(sonePosts, Post.TIME_COMPARATOR);
Pagination<Post> postPagination = new Pagination<Post>(sonePosts, webInterface.getCore().getPreferences().getPostsPerPage()).setPage(Numbers.safeParseInteger(request.getHttpRequest().getParam("postPage"), 0));
templateContext.set("postPagination", postPagination);
templateContext.set("repliedPosts", repliedPostPagination.getItems());
}
- /**
- * {@inheritDoc}
- */
@Override
public boolean isLinkExcepted(URI link) {
return true;