Store all albums from configuration in database.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Sep 2014 16:21:36 +0000 (18:21 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Sep 2014 16:21:36 +0000 (18:21 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 9e20c00..e1dbb4c 100644 (file)
@@ -1009,7 +1009,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
                        for (PostReply newPostReply : newPostReplies) {
                                eventBus.post(new NewPostReplyFoundEvent(newPostReply));
                        }
-                       for (Album album : sone.getRootAlbum().getAlbums()) {
+                       for (Album album : toAllAlbums.apply(sone)) {
                                database.storeAlbum(album);
                                for (Image image : album.getImages()) {
                                        database.storeImage(image);