Reload avatar from repository to resolve Hibernate proxy instanceof issue

FixSecurityService
Shipped
November 26, 2025 at 6:54 PM UTC
Author
snadjafinia
Commit
0f5988a

- Avatar entities loaded from relationships may be Hibernate proxies that fail instanceof checks - Reload avatar from repository to get actual entity type (AvatarPhoto or AvatarAvatar Creator) - Add fallback logic using reflection if reload fails - Fixes 'Unknown avatar type' error causing null avatar URLs

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing