This should prevent ridiculously large editions when creating insert
keys from the identity keys.
return null;
}
try {
- return new FreenetURI(((OwnIdentity) getIdentity()).getInsertUri()).setDocName("Sone").setMetaString(new String[0]);
+ return new FreenetURI(((OwnIdentity) getIdentity()).getInsertUri())
+ .setDocName("Sone")
+ .setMetaString(new String[0])
+ .setSuggestedEdition(latestEdition);
} catch (MalformedURLException e) {
throw new IllegalStateException(format("Own identity %s's insert URI is incorrect.", getIdentity()), e);
}