From: David ‘Bombe’ Roden Date: Sun, 14 Nov 2010 20:29:42 +0000 (+0100) Subject: Fire events when new posts and replies are found. X-Git-Tag: 0.3-RC1~56 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3e6898bb3e6e1d6fba2e95df82fbc7f98415aa4f;p=Sone.git Fire events when new posts and replies are found. --- 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); }