Update the edition numbers in the keys.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 16:06:53 +0000 (18:06 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 14 Oct 2010 16:06:53 +0000 (18:06 +0200)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java

index 5730b55..b1c8939 100644 (file)
@@ -106,6 +106,7 @@ public class SoneInserter extends AbstractService {
                                boolean success = false;
                                try {
                                        FreenetURI finalUri = freenetInterface.insertDirectory(insertInformation.getInsertUri().setKeyType("USK").setDocName("Sone-" + sone.getName()).setSuggestedEdition(0), insertInformation.generateManifestEntries(), "index.html");
+                                       sone.updateUris(finalUri);
                                        success = true;
                                        logger.log(Level.INFO, "Inserted Sone “%s” at %s.", new Object[] { sone.getName(), finalUri });
                                } catch (SoneException se1) {