From: David ‘Bombe’ Roden Date: Wed, 17 Nov 2010 21:09:01 +0000 (+0100) Subject: Replace the Sone of a reply with the authoritative one. X-Git-Tag: 0.3-RC1~7 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=9db5d67a18552b4aa6b3e374bc4b928f89f0bfef Replace the Sone of a reply with the authoritative one. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index ea491bb..1faca35 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -841,6 +841,7 @@ public class Core implements IdentityListener { synchronized (newReplies) { for (Reply reply : sone.getReplies()) { if (!storedSone.getReplies().contains(reply) && !knownReplies.contains(reply.getId())) { + reply.setSone(getSone(reply.getSone().getId())); newReplies.add(reply.getId()); coreListenerManager.fireNewReplyFound(reply); }