Delegate AvatarObjectPaths to the shared library

RefactorSecurityService
Shipped
August 21, 2026 at 2:02 AM UTC
Author
Kamo
Commit
ed40aeb

MediaService now names avatar objects too — the support chats list shows the requestor's photo, and a support requestor is in somebody else's organization, so no client-side directory can resolve them. Two copies of an avatar object path is precisely the failure this class was written to end: the path used to carry the request's host, so a photo uploaded on one org's domain 404'd when read from another and degraded silently to initials. The strings move to the shared library; this class stays as a delegating alias so its six call sites keep their import unchanged, and holds no paths of its own.

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