X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ftemplate%2FAlbumAccessor.java;h=f7b6f62890094943f8e141f2582ab7fbf7ad749c;hp=50934424e04053548ac338abe4426d170546c065;hb=62573c314957b1851f4fbe693b8746686caa940a;hpb=d9206828d23e4c0092499c46ffd75f6792c928bc diff --git a/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java b/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java index 5093442..f7b6f62 100644 --- a/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java @@ -1,5 +1,5 @@ /* - * Sone - AlbumAccessor.java - Copyright © 2011–2015 David Roden + * Sone - AlbumAccessor.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 @@ -31,8 +31,6 @@ import net.pterodactylus.util.template.TemplateContext; * {@link Accessor} implementation for {@link Album}s. A property named * “backlinks” is added, it returns links to all parents and the owner Sone of * an album. - * - * @author David ‘Bombe’ Roden */ public class AlbumAccessor extends ReflectionAccessor { @@ -53,7 +51,7 @@ public class AlbumAccessor extends ReflectionAccessor { } backlinks.add(0, new Link("imageBrowser.html?sone=" + album.getSone().getId(), SoneAccessor.getNiceName(album.getSone()))); return backlinks; - } else if ("randomImage".equals(member)) { + } else if ("albumImage".equals(member)) { List images = album.getImages(); return images.isEmpty() ? null : images.get(random.nextInt(images.size())); } @@ -62,8 +60,6 @@ public class AlbumAccessor extends ReflectionAccessor { /** * Container for links. - * - * @author David ‘Bombe’ Roden */ private static class Link {