From: David ‘Bombe’ Roden Date: Wed, 17 Nov 2010 21:23:38 +0000 (+0100) Subject: Always fix up posts and replies. X-Git-Tag: 0.3-RC1~4 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9e51cdd24c4de3629254ac75a70f21183daf1c3f;p=Sone.git Always fix up posts and replies. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 1faca35..4561b6d 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -823,8 +823,8 @@ public class Core implements IdentityListener { } synchronized (newPosts) { for (Post post : sone.getPosts()) { + post.setSone(getSone(post.getSone().getId())); if (!storedSone.getPosts().contains(post) && !knownPosts.contains(post.getId())) { - post.setSone(getSone(post.getSone().getId())); newPosts.add(post.getId()); coreListenerManager.fireNewPostFound(post); } @@ -840,8 +840,8 @@ public class Core implements IdentityListener { } synchronized (newReplies) { for (Reply reply : sone.getReplies()) { + reply.setSone(getSone(reply.getSone().getId())); if (!storedSone.getReplies().contains(reply) && !knownReplies.contains(reply.getId())) { - reply.setSone(getSone(reply.getSone().getId())); newReplies.add(reply.getId()); coreListenerManager.fireNewReplyFound(reply); }