Copy the contexts and properties, too.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 13 Nov 2011 11:45:27 +0000 (12:45 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 13 Nov 2011 11:45:27 +0000 (12:45 +0100)
src/main/java/net/pterodactylus/sone/freenet/wot/DefaultOwnIdentity.java

index ff52684..be2a3e7 100644 (file)
@@ -69,6 +69,8 @@ public class DefaultOwnIdentity extends DefaultIdentity implements OwnIdentity {
                super(webOfTrustConnector, ownIdentity.getId(), ownIdentity.getNickname(), ownIdentity.getRequestUri());
                this.webOfTrustConnector = webOfTrustConnector;
                this.insertUri = ownIdentity.getInsertUri();
+               setContextsPrivate(ownIdentity.getContexts());
+               setPropertiesPrivate(ownIdentity.getProperties());
        }
 
        //