Store Sone in correct set when marking as known.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 19 Jan 2011 14:39:36 +0000 (15:39 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 19 Jan 2011 14:39:36 +0000 (15:39 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 22ab47b..c8d500e 100644 (file)
@@ -1152,7 +1152,7 @@ public class Core implements IdentityListener, UpdateListener {
        public void markSoneKnown(Sone sone) {
                synchronized (newSones) {
                        if (newSones.remove(sone.getId())) {
-                               knownPosts.add(sone.getId());
+                               knownSones.add(sone.getId());
                                coreListenerManager.fireMarkSoneKnown(sone);
                                saveConfiguration();
                        }