🔥 Remove FLATTENER from Album interface
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / data / Sone.kt
index 3f70ad7..46ff336 100644 (file)
@@ -51,3 +51,7 @@ val postCountComparator: Comparator<Sone> =
 
 val imageCountComparator: Comparator<Sone> =
                comparing<Sone, Int> { it.rootAlbum.allImages.size }.reversed()
+
+val Sone.allAlbums: List<Album>
+       get() =
+               rootAlbum.albums.flatMap(Album::allAlbums)