projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use internal image IDs for temporary images
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
template
/
ProfileAccessor.java
diff --git
a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java
b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java
index
ce29caa
..
eb280e1
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java
+++ b/
src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java
@@
-65,7
+65,7
@@
public class ProfileAccessor extends ReflectionAccessor {
if (avatarId == null) {
return null;
}
- if (!
currentSone
.getImageByInternalId(avatarId).isPresent()) {
+ if (!
profile.getSone()
.getImageByInternalId(avatarId).isPresent()) {
/* avatar ID but no matching image? show nothing. */
return null;
}