* {@inheritDoc}
*/
@Override
- protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
- super.processTemplate(request, templateContext);
+ protected void processSonePage(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
if (request.getMethod() == Method.POST) {
String albumId = request.getHttpRequest().getPartAsStringFailsafe("album", IdBuilder.ID_STRING_LENGTH);
Optional<Album> album = webInterface.getCore().getAlbum(albumId);
if (!album.isPresent()) {
throw new RedirectException("invalid.html");
}
- templateContext.set("album", album);
+ templateContext.set("album", album.get());
}
}