From: David ‘Bombe’ Roden Date: Sat, 16 Apr 2011 14:02:48 +0000 (+0200) Subject: Set the latest edition of a Sone when the identity is updated. X-Git-Tag: 0.6.2^2~9 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=4b3e0259621d107084ee624fe412750e712911c5 Set the latest edition of a Sone when the identity is updated. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 7a4bc4a..fcbc889 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1905,6 +1905,7 @@ public class Core implements IdentityListener, UpdateListener { public void run() { Sone sone = getRemoteSone(identity.getId()); sone.setIdentity(identity); + sone.setLatestEdition(Numbers.safeParseLong(identity.getProperty("Sone.LatestEdition"), sone.getLatestEdition())); soneDownloader.addSone(sone); soneDownloader.fetchSone(sone); }