Use convenience method to get post builder.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 23 Jan 2013 22:02:45 +0000 (23:02 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 23 Jan 2013 22:02:45 +0000 (23:02 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java

index 2a1ef8e..93a5f00 100644 (file)
@@ -1307,7 +1307,7 @@ public class Core extends AbstractService implements SoneProvider, PostProvider
                                logger.log(Level.WARNING, "Invalid post found, aborting load!");
                                return;
                        }
-                       PostBuilder postBuilder = postBuilderFactory.newPostBuilder().withId(postId).from(sone).withTime(postTime).withText(postText);
+                       PostBuilder postBuilder = postBuilder().withId(postId).from(sone).withTime(postTime).withText(postText);
                        if ((postRecipientId != null) && (postRecipientId.length() == 43)) {
                                postBuilder.to(getSone(postRecipientId));
                        }