projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
Core.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/Core.java
b/src/main/java/net/pterodactylus/sone/core/Core.java
index
0f22b81
..
8fcfe10
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/Core.java
+++ b/
src/main/java/net/pterodactylus/sone/core/Core.java
@@
-965,7
+965,7
@@
public class Core extends AbstractService implements SoneProvider {
break;
}
String fieldValue = configuration.getStringValue(fieldPrefix + "/Value").getValue("");
break;
}
String fieldValue = configuration.getStringValue(fieldPrefix + "/Value").getValue("");
- profile.
addField(fieldName).setValue(
fieldValue);
+ profile.
setField(profile.addField(fieldName),
fieldValue);
}
/* load posts. */
}
/* load posts. */
@@
-1094,7
+1094,7
@@
public class Core extends AbstractService implements SoneProvider {
/* load avatar. */
String avatarId = configuration.getStringValue(sonePrefix + "/Profile/Avatar").getValue(null);
if (avatarId != null) {
/* load avatar. */
String avatarId = configuration.getStringValue(sonePrefix + "/Profile/Avatar").getValue(null);
if (avatarId != null) {
- profile.setAvatar(getImage(avatarId).
orNull(
));
+ profile.setAvatar(getImage(avatarId).
transform(GET_ID
));
}
/* load options. */
}
/* load options. */