projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move post creation into Sone, remove memory-based post builder.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
SoneDownloader.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
b/src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
index
4be836b
..
c026a37
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
+++ b/
src/main/java/net/pterodactylus/sone/core/SoneDownloader.java
@@
-368,9
+368,9
@@
public class SoneDownloader extends AbstractService {
return null;
}
try {
return null;
}
try {
- PostBuilder postBuilder =
core.p
ostBuilder();
+ PostBuilder postBuilder =
sone.newP
ostBuilder();
/* TODO - parse time correctly. */
/* TODO - parse time correctly. */
- postBuilder.withId(postId).
from(sone.getId()).
withTime(Long.parseLong(postTime)).withText(postText);
+ postBuilder.withId(postId).withTime(Long.parseLong(postTime)).withText(postText);
if ((postRecipientId != null) && (postRecipientId.length() == 43)) {
postBuilder.to(postRecipientId);
}
if ((postRecipientId != null) && (postRecipientId.length() == 43)) {
postBuilder.to(postRecipientId);
}