tangled
alpha
login
or
join now
margin.at
/
margin
87
fork
atom
Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
87
fork
atom
overview
issues
4
pulls
1
pipelines
update profile page to use our backend avatar proxy
scanash.com
1 month ago
7f13fc29
e472f3dc
+3
-1
1 changed file
expand all
collapse all
unified
split
web
src
pages
Profile.jsx
+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
136
-
const avatarUrl = profile?.avatar;
136
136
+
const avatarUrl = profile?.did
137
137
+
? `/api/avatar/${encodeURIComponent(profile.did)}`
138
138
+
: null;
137
139
138
140
const getInitial = () => {
139
141
return (displayName || displayHandle || "??")