Reset modification counter after updating a Sone.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 10 Nov 2010 08:36:34 +0000 (09:36 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 10 Nov 2010 08:36:34 +0000 (09:36 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index abebdd7..20ff26c 100644 (file)
@@ -550,6 +550,7 @@ public class Core implements IdentityListener {
                                storedSone.setLikePostIds(sone.getLikedPostIds());
                                storedSone.setLikeReplyIds(sone.getLikedReplyIds());
                                storedSone.setLatestEdition(sone.getRequestUri().getEdition());
+                               storedSone.setModificationCounter(0);
                        }
                        saveSone(storedSone);
                }