Use direct cast to determine avatar type instead of reflection

FixSecurityService
Shipped
November 26, 2025 at 7:26 PM UTC
Author
snadjafinia
Commit
362de97

- Try casting to AvatarPhoto first to force proxy initialization - Access getFileExtension() directly after cast - Fall back to AvatarAvatar Creator cast if photo cast fails - Better error handling for type detection

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