Store flattened albums in insert information.
[Sone.git] / 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()));
                }
 
                //