Turn album list flattening into a proper Sone method.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneInserter.java
index f654d09..a66069f 100644 (file)
@@ -302,6 +302,7 @@ public class SoneInserter extends AbstractService {
                        soneProperties.put("replies", new ListBuilder<Reply>(new ArrayList<Reply>(sone.getReplies())).sort(new ReverseComparator<Reply>(Reply.TIME_COMPARATOR)).get());
                        soneProperties.put("likedPostIds", new HashSet<String>(sone.getLikedPostIds()));
                        soneProperties.put("likedReplyIds", new HashSet<String>(sone.getLikedReplyIds()));
+                       soneProperties.put("albums", sone.getAllAlbums());
                }
 
                //