Use correct parameter name for WoT’s GetIdentitiesByScore command.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 17 Apr 2012 11:42:06 +0000 (13:42 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 17 Apr 2012 11:42:06 +0000 (13:42 +0200)
Fuckings to p0s for simply changing the parameter name without telling anybody.

src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java

index 4ee2c0e..4085b1a 100644 (file)
@@ -134,7 +134,7 @@ public class WebOfTrustConnector implements ConnectorListener {
         *             if an error occured talking to the Web of Trust plugin
         */
        public Set<Identity> loadTrustedIdentities(OwnIdentity ownIdentity, String context) throws PluginException {
-               Reply reply = performRequest(SimpleFieldSetConstructor.create().put("Message", "GetIdentitiesByScore").put("TreeOwner", ownIdentity.getId()).put("Selection", "+").put("Context", (context == null) ? "" : context).get());
+               Reply reply = performRequest(SimpleFieldSetConstructor.create().put("Message", "GetIdentitiesByScore").put("Truster", ownIdentity.getId()).put("Selection", "+").put("Context", (context == null) ? "" : context).get());
                SimpleFieldSet fields = reply.getFields();
                Set<Identity> identities = new HashSet<Identity>();
                int identityCounter = -1;