Store flattened albums in insert information.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 05:35:04 +0000 (07:35 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 13 Apr 2011 05:35:04 +0000 (07:35 +0200)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java

index 15e054f..2160ab8 100644 (file)
@@ -270,6 +270,7 @@ public class SoneInserter extends AbstractService {
                        soneProperties.put("replies", new HashSet<Reply>(sone.getReplies()));
                        soneProperties.put("likedPostIds", new HashSet<String>(sone.getLikedPostIds()));
                        soneProperties.put("likedReplyIds", new HashSet<String>(sone.getLikedReplyIds()));
+                       soneProperties.put("albums", Sone.flattenAlbums(sone.getAlbums()));
                }
 
                //