Set modification counter to 0 after loading the Sone from Freenet.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 21:01:09 +0000 (23:01 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Oct 2010 21:01:09 +0000 (23:01 +0200)
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java

index 8a2203c..efd13e4 100644 (file)
@@ -235,6 +235,7 @@ public class SoneDownloader extends AbstractService {
                                sone.setProfile(profile);
                                sone.setPosts(posts);
                                sone.setReplies(replies);
+                               sone.setModificationCounter(0);
                        }
                } catch (IOException ioe1) {
                        logger.log(Level.WARNING, "Could not read XML file from " + sone + "!", ioe1);