From: David ‘Bombe’ Roden Date: Wed, 23 Jan 2013 22:02:45 +0000 (+0100) Subject: Use convenience method to get post builder. X-Git-Tag: 0.8.5^2~3^2~58^2~8 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=095bf6be1d68c841ea49742651d2c4c6b984821b;p=Sone.git Use convenience method to get post builder. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 2a1ef8e..93a5f00 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -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)); }