From 3e6898bb3e6e1d6fba2e95df82fbc7f98415aa4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 14 Nov 2010 21:29:42 +0100 Subject: [PATCH] Fire events when new posts and replies are found. --- src/main/java/net/pterodactylus/sone/core/Core.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 7872c94..67c16a6 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -734,6 +734,7 @@ public class Core implements IdentityListener { for (Post post : sone.getPosts()) { if (!storedSone.getPosts().contains(post) && !knownPosts.contains(post.getId())) { newPosts.add(post.getId()); + coreListenerManager.fireNewPostFound(post); } posts.put(post.getId(), post); } @@ -747,6 +748,7 @@ public class Core implements IdentityListener { for (Reply reply : sone.getReplies()) { if (!storedSone.getReplies().contains(reply) && !knownReplies.contains(reply.getId())) { newReplies.add(reply.getId()); + coreListenerManager.fireNewReplyFound(reply); } replies.put(reply.getId(), reply); } -- 2.7.4