Use unique IDs for images
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Profile.java
index 4970cf9..679196b 100644 (file)
@@ -243,7 +243,7 @@ public class Profile implements Fingerprintable {
                        return this;
                }
                checkArgument(avatar.getSone().equals(sone), "avatar must belong to Sone");
-               this.avatar = avatar.getId();
+               this.avatar = avatar.getInternalId();
                return this;
        }