Actually remove trust when setting it null.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 3 Aug 2014 17:22:04 +0000 (19:22 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 3 Aug 2014 17:22:04 +0000 (19:22 +0200)
src/main/java/net/pterodactylus/sone/core/WebOfTrustUpdater.java

index d9389b7..9ad6478 100644 (file)
@@ -375,7 +375,7 @@ public class WebOfTrustUpdater extends AbstractService {
                                        trustee.setTrust(truster, new Trust(score, null, 0));
                                        webOfTrustConnector.setTrust(truster, trustee, score, comment);
                                } else {
-                                       trustee.setTrust(truster, null);
+                                       trustee.removeTrust(truster);
                                        webOfTrustConnector.removeTrust(truster, trustee);
                                }
                                finish(true);