From: David ‘Bombe’ Roden Date: Mon, 24 Jan 2011 19:20:58 +0000 (+0100) Subject: Set the latest edition in a better way on a Sone being parsed. X-Git-Tag: 0.4.2^2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c2537ba1cf3ab56e0f1a2e7520d2fbf0b48eecbd;p=Sone.git Set the latest edition in a better way on a Sone being parsed. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index af4155d..c883301 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -285,7 +285,7 @@ public class SoneDownloader extends AbstractService { if ((soneInsertUri != null) && (sone.getInsertUri() == null)) { try { sone.setInsertUri(new FreenetURI(soneInsertUri)); - sone.setLatestEdition(Math.max(sone.getRequestUri().getSuggestedEdition(), sone.getInsertUri().getSuggestedEdition())); + sone.setLatestEdition(Math.max(sone.getRequestUri().getEdition(), sone.getInsertUri().getEdition())); } catch (MalformedURLException mue1) { /* TODO - mark Sone as bad. */ logger.log(Level.WARNING, "Downloaded Sone " + sone + " has invalid insert URI: " + soneInsertUri, mue1);