Store latest edition in Sone, update WoT properties after inserting.
[Sone.git] / src / main / java / net / pterodactylus / sone / core / FreenetInterface.java
index 30ba69a..9ff3a12 100644 (file)
@@ -151,7 +151,7 @@ public class FreenetInterface {
                                public void onFoundEdition(long edition, USK key, ObjectContainer objectContainer, ClientContext clientContext, boolean metadata, short codec, byte[] data, boolean newKnownGood, boolean newSlotToo) {
                                        logger.log(Level.FINE, "Found USK update for Sone ā€œ%sā€ at %s, new known good: %s, new slot too: %s.", new Object[] { sone, key, newKnownGood, newSlotToo });
                                        if (newKnownGood) {
-                                               sone.updateUris(key.suggestedEdition);
+                                               sone.setLatestEdition(key.suggestedEdition);
                                                soneDownloader.fetchSone(sone);
                                        }
                                }