From: David ‘Bombe’ Roden Date: Sun, 14 Nov 2010 20:29:33 +0000 (+0100) Subject: Check for new posts and replies in the correct places. X-Git-Tag: 0.3-RC1~57 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3491bcaaa2305f34e9d41750d288564628a14614;p=Sone.git Check for new posts and replies in the correct places. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 4c08651..7872c94 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -732,7 +732,7 @@ public class Core implements IdentityListener { } synchronized (newPosts) { for (Post post : sone.getPosts()) { - if (!storedSone.getPosts().contains(post) && !knownSones.contains(post.getId())) { + if (!storedSone.getPosts().contains(post) && !knownPosts.contains(post.getId())) { newPosts.add(post.getId()); } posts.put(post.getId(), post); @@ -745,7 +745,7 @@ public class Core implements IdentityListener { } synchronized (newReplies) { for (Reply reply : sone.getReplies()) { - if (!storedSone.getReplies().contains(reply) && !knownSones.contains(reply.getId())) { + if (!storedSone.getReplies().contains(reply) && !knownReplies.contains(reply.getId())) { newReplies.add(reply.getId()); } replies.put(reply.getId(), reply);