Set the latest edition of a Sone when the identity is updated.
[Sone.git] / 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);
                        }