Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dtdesign
Copy link
Member

This change will store the relative pathname for a user’s avatar in the user table. This permits us to display the avatar without having to rely on joining any other table, using the user storage or fetching additional data on runtime.

The implementation in StaticAvatar is a bit sketchy because it pretends that the avatar is 128x128 even if it could be larger than that. From what I can tell those methods aren’t used in any meaningful way and it avoids storing extra values or doing expensive file I/O to determine it on runtime. We can possibly just deprecate the getWidth() and getHeight() method but this is out of scope for this PR.

@dtdesign dtdesign merged commit d0a1741 into 6.2 Aug 30, 2025
9 checks passed
@dtdesign dtdesign deleted the 62-avatar-denormalization branch August 30, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants