Repository navigation
RM-337: Show default avatar for gallery submitters without one - #156
Merged
Merged
Conversation
Centralizes gallery submitter avatar rendering through userAvatarUrl so users without stored avatar URLs still display their Discord avatar consistently across cards, previews, admin listings, and detail pages.
BenHall-1
approved these changes
Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RM-337
Description
Gallery submitters without a custom Discord avatar had no image rendered, so on the admin gallery card "by" ran into the username (e.g. "bybiast12"). The backend omits
avatar_urlfor these users.Every place that shows the submitter now always renders an avatar via
userAvatarUrl, which falls back to Discord's default avatar for the user's ID (same approach asBlacklistAvatarin #153):Type of Change
Testing
/admin/gallery: a submission from a user with no custom avatar shows "by [default avatar] username · date"; Preview modal shows the same avatar/gallerycard and/gallery/:idshow the default avatar; users with a custom avatar still show theirsChecklist