From 4ada7665ed1f01aa7c370c2e9005919d9c9bfa76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 6 Dec 2010 06:44:19 +0100 Subject: [PATCH] Fire correct event when a post or reply is removed. --- src/main/java/net/pterodactylus/sone/core/Core.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } } -- 2.7.4