Store and parse replies in/from inserted Sone.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / SoneInserter.java
index e8c828c..136c1e3 100644 (file)
@@ -88,7 +88,7 @@ public class SoneInserter extends AbstractService {
         *            The Sone to insert
         */
        public SoneInserter(Core core, FreenetInterface freenetInterface, Sone sone) {
-               super("Sone Inserter for “" + sone.getName() + "”");
+               super("Sone Inserter for “" + sone.getName() + "”", false);
                this.core = core;
                this.freenetInterface = freenetInterface;
                this.sone = sone;
@@ -181,8 +181,9 @@ public class SoneInserter extends AbstractService {
                        soneProperties.put("profile", sone.getProfile());
                        soneProperties.put("posts", new ArrayList<Post>(sone.getPosts()));
                        soneProperties.put("replies", new HashSet<Reply>(sone.getReplies()));
-                       soneProperties.put("friends", new HashSet<Sone>(sone.getFriends()));
                        soneProperties.put("blockedSoneIds", new HashSet<String>(sone.getBlockedSoneIds()));
+                       soneProperties.put("likedPostIds", new HashSet<String>(sone.getLikedPostIds()));
+                       soneProperties.put("likeReplyIds", new HashSet<String>(sone.getLikedReplyIds()));
                }
 
                //