X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FSoneDownloader.java;h=59eaa78140489a510e72483c5d3fbb195ef2e302;hb=827f78acf643d43be2cafdd05400b21908955e3f;hp=d9b318c97e26e3aae9156930629314dce681ab3f;hpb=dad0a35efe98948bb9e79dc193e7fa9a2bbe7ece;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java index d9b318c..59eaa78 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java @@ -372,7 +372,7 @@ public class SoneDownloader extends AbstractService { return null; } try { - Post post = core.getPost(postId).setSone(sone).setTime(Long.parseLong(postTime)).setText(postText); + Post post = core.getPost(postId, true).setSone(sone).setTime(Long.parseLong(postTime)).setText(postText); if ((postRecipientId != null) && (postRecipientId.length() == 43)) { post.setRecipient(core.getSone(postRecipientId)); } @@ -403,7 +403,7 @@ public class SoneDownloader extends AbstractService { return null; } try { - replies.add(core.getReply(replyId).setSone(sone).setPost(core.getPost(replyPostId)).setTime(Long.parseLong(replyTime)).setText(replyText)); + replies.add(core.getReply(replyId).setSone(sone).setPost(core.getPost(replyPostId, true)).setTime(Long.parseLong(replyTime)).setText(replyText)); } catch (NumberFormatException nfe1) { /* TODO - mark Sone as bad. */ logger.log(Level.WARNING, String.format("Downloaded reply for Sone %s with invalid time: %s", sone, replyTime));