Set the latest edition of a Sone when the identity is updated.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Apr 2011 14:02:48 +0000 (16:02 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 16 Apr 2011 14:02:48 +0000 (16:02 +0200)
src/main/java/net/pterodactylus/sone/core/Core.java

index 7a4bc4a..fcbc889 100644 (file)
@@ -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);
                        }