From: David ‘Bombe’ Roden Date: Tue, 25 Jan 2011 19:52:50 +0000 (+0100) Subject: Use the URI from the Sone directly. X-Git-Tag: 0.4.3^2~6 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=35ab8487ff35cfd7b6960284b84c6575ab04c2c8;p=Sone.git Use the URI from the Sone directly. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index 2133b56..b16d374 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -204,7 +204,7 @@ public class SoneInserter extends AbstractService { core.setSoneStatus(sone, SoneStatus.inserting); long insertTime = System.currentTimeMillis(); insertInformation.setTime(insertTime); - FreenetURI finalUri = freenetInterface.insertDirectory(insertInformation.getInsertUri().setKeyType("USK").setSuggestedEdition(0), insertInformation.generateManifestEntries(), "index.html"); + FreenetURI finalUri = freenetInterface.insertDirectory(insertInformation.getInsertUri(), insertInformation.generateManifestEntries(), "index.html"); /* at this point we might already be stopped. */ if (shouldStop()) { /* if so, bail out, don’t change anything. */