From: David ‘Bombe’ Roden Date: Mon, 6 Dec 2010 05:44:19 +0000 (+0100) Subject: Fire correct event when a post or reply is removed. X-Git-Tag: 0.3.2~9 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=4ada7665ed1f01aa7c370c2e9005919d9c9bfa76;p=Sone.git Fire correct event when a post or reply is removed. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 5d176ce..c99b055 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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); } } }