fix: post/reply avatars not updating after avatar change
Feed, PostDetail and ReplyList rendered ui-avatars fallback from username only, ignoring avatar_url from the posts/replies API. Now use p.avatar_url / r.avatar_url when present.
This commit is contained in:
1 parent
d5e56c0a20
commit
599b6f3435
3 files changed
+3
-3
No files matched your search
@@ -74,7 +74,7 @@ export default function ReplyList({ postId, onRefresh }) {
|
||||
return (
|
||||
<div key={r.id} className="reply-item">
|
||||
<div className="reply-header">
|
||||
<img src={avatar(r.username)} className="reply-avatar" alt="" />
|
||||
<img src={r.avatar_url || avatar(r.username)} className="reply-avatar" alt="" />
|
||||
<span
|
||||
className="reply-username"
|
||||
style={{ cursor: 'pointer', color: 'var(--primary)' }}
|
||||
|
||||
Reference in new issue
Block a user