Reply a new post’s Sone with the already existing copy.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 19:59:04 +0000 (20:59 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 19:59:04 +0000 (20:59 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index eeda121..0f95d56 100644 (file)
@@ -807,6 +807,7 @@ public class Core implements IdentityListener {
                                synchronized (newPosts) {
                                        for (Post post : sone.getPosts()) {
                                                if (!storedSone.getPosts().contains(post) && !knownPosts.contains(post.getId())) {
+                                                       post.setSone(getSone(post.getSone().getId()));
                                                        newPosts.add(post.getId());
                                                        coreListenerManager.fireNewPostFound(post);
                                                }