Write on the margins of the internet. Powered by the AT Protocol. margin.at
extension web atproto comments

update profile page to use our backend avatar proxy

+3 -1
+3 -1
web/src/pages/Profile.jsx
··· 133 133 const displayName = profile?.displayName || profile?.handle || handle; 134 134 const displayHandle = 135 135 profile?.handle || (handle?.startsWith("did:") ? null : handle); 136 - const avatarUrl = profile?.avatar; 136 + const avatarUrl = profile?.did 137 + ? `/api/avatar/${encodeURIComponent(profile.did)}` 138 + : null; 137 139 138 140 const getInitial = () => { 139 141 return (displayName || displayHandle || "??")