From: David ‘Bombe’ Roden Date: Mon, 30 Sep 2013 19:01:49 +0000 (+0200) Subject: Add accessor for all top-level albums of a Sone. X-Git-Tag: 0.8.8^2~27 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8c34d116d01d475c6b69411f1e9583a631687380;p=Sone.git Add accessor for all top-level albums of a Sone. --- diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java index ab872d9..92be8e0 100644 --- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java @@ -118,6 +118,8 @@ public class SoneAccessor extends ReflectionAccessor { return trust; } else if (member.equals("allImages")) { return from(asList(sone.getRootAlbum())).transformAndConcat(FLATTENER).transformAndConcat(IMAGES); + } else if (member.equals("albums")) { + return sone.getRootAlbum().getAlbums(); } return super.get(templateContext, object, member); }