Replace the Sone of a reply with the authoritative one.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 21:09:01 +0000 (22:09 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 21:09:01 +0000 (22:09 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index ea491bb..1faca35 100644 (file)
@@ -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);
                                                }