Use unique IDs for images
[Sone.git] / src / main / java / net / pterodactylus / sone / template / ProfileAccessor.java
index 762bc14..ce29caa 100644 (file)
@@ -65,7 +65,7 @@ public class ProfileAccessor extends ReflectionAccessor {
                        if (avatarId == null) {
                                return null;
                        }
-                       if (core.getImage(avatarId, false) == null) {
+                       if (!currentSone.getImageByInternalId(avatarId).isPresent()) {
                                /* avatar ID but no matching image? show nothing. */
                                return null;
                        }