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 const displayName = profile?.displayName || profile?.handle || handle; 134 const displayHandle = 135 profile?.handle || (handle?.startsWith("did:") ? null : handle); 136 - const avatarUrl = profile?.avatar; 137 138 const getInitial = () => { 139 return (displayName || displayHandle || "??")
··· 133 const displayName = profile?.displayName || profile?.handle || handle; 134 const displayHandle = 135 profile?.handle || (handle?.startsWith("did:") ? null : handle); 136 + const avatarUrl = profile?.did 137 + ? `/api/avatar/${encodeURIComponent(profile.did)}` 138 + : null; 139 140 const getInitial = () => { 141 return (displayName || displayHandle || "??")