Don’t insert friends anymore.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Oct 2010 23:04:35 +0000 (01:04 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 22 Oct 2010 23:04:35 +0000 (01:04 +0200)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java
src/main/resources/templates/insert/sone.xml

index 2574b74..cf26ebb 100644 (file)
@@ -181,7 +181,6 @@ 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()));
                }
 
index 2469e49..27b9c20 100644 (file)
                <%/foreach>
        </replies>
 
-       <friends>
-               <%foreach currentSone.friends friend>
-               <friend>
-                       <sone-id><% friend.id|xml></sone-id>
-                       <sone-key><% friend.requestUri|xml></sone-key>
-                       <sone-name><% friend.name|xml></sone-name>
-               </friend>
-               <%/foreach>
-       </friends>
-
        <known-sones>
                <%foreach knownSones sone>
                <known-sone>