Add the correct Sone!
[Sone.git] / src / main / java / net / pterodactylus / sone / core / Core.java
index 3b23113..a0de367 100644 (file)
@@ -410,7 +410,7 @@ public class Core extends AbstractService {
                                        String friendName = configuration.getStringValue(friendPrefix + "/Name").getValue(null);
                                        friendSone.setRequestUri(new FreenetURI(friendKey)).setName(friendName);
                                        soneDownloader.addSone(friendSone);
-                                       sone.addFriend(sone);
+                                       sone.addFriend(friendSone);
                                }
 
                                sone.setModificationCounter(modificationCounter);