From: David ‘Bombe’ Roden Date: Mon, 15 Sep 2014 16:21:36 +0000 (+0200) Subject: Store all albums from configuration in database. X-Git-Tag: 0.9-rc1^2~3^2~127 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bd5e8b19dc1407985f65ffff01d9dbeb9da43670;p=Sone.git Store all albums from configuration in database. --- 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);