Create local Sones when parsing local Sones.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 9 Jul 2013 06:41:26 +0000 (08:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 9 Jul 2013 06:41:26 +0000 (08:41 +0200)
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java

index f493fdc..5b56de8 100644 (file)
@@ -239,7 +239,7 @@ public class SoneDownloader extends AbstractService {
                        return null;
                }
 
-               Sone sone = new Sone(originalSone.getId(), false).setIdentity(originalSone.getIdentity());
+               Sone sone = new Sone(originalSone.getId(), originalSone.isLocal()).setIdentity(originalSone.getIdentity());
 
                SimpleXML soneXml;
                try {