Fire correct event when a post or reply is removed.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 6 Dec 2010 05:44:19 +0000 (06:44 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 6 Dec 2010 05:44:19 +0000 (06:44 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 5d176ce..c99b055 100644 (file)
@@ -886,7 +886,7 @@ public class Core implements IdentityListener {
                                        for (Post post : storedSone.getPosts()) {
                                                posts.remove(post.getId());
                                                if (!sone.getPosts().contains(post)) {
-                                                       markPostKnown(post);
+                                                       coreListenerManager.firePostRemoved(post);
                                                }
                                        }
                                }
@@ -906,7 +906,7 @@ public class Core implements IdentityListener {
                                        for (Reply reply : storedSone.getReplies()) {
                                                replies.remove(reply.getId());
                                                if (!sone.getReplies().contains(reply)) {
-                                                       markReplyKnown(reply);
+                                                       coreListenerManager.fireReplyRemoved(reply);
                                                }
                                        }
                                }