From bd5e8b19dc1407985f65ffff01d9dbeb9da43670 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 15 Sep 2014 18:21:36 +0200 Subject: [PATCH] Store all albums from configuration in database. --- src/main/java/net/pterodactylus/sone/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 9e20c00..e1dbb4c 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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); -- 2.7.4