KamoCRM

Delegate AvatarObjectPaths to the shared library

RefactorSecurityService
Shipped
21 ஆகஸ்ட், 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing