From c9c500a07d58fbbbe8bfd1cbc326140872ccc785 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Wed, 14 Feb 2024 10:51:09 +0300
Subject: Fetch ActivityPub profiles
---
vnext/src/ui/UserInfo.js | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
(limited to 'vnext/src/ui')
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js
index f71dfcdc..3ea78d6f 100644
--- a/vnext/src/ui/UserInfo.js
+++ b/vnext/src/ui/UserInfo.js
@@ -97,12 +97,7 @@ export function UserLink(props) {
if (userRef.current.uri) {
fetchUserUri(userRef.current.uri).then(remote_user => {
if (isMounted) {
- setUser({
- uid: 0,
- uname: remote_user.preferredUsername,
- avatar: remote_user.icon && remote_user.icon.url,
- uri: userRef.current.uri
- })
+ setUser(remote_user)
}
}).catch(() => {
setUser({
@@ -122,7 +117,7 @@ export function UserLink(props) {
{user.uname}
- :
+ :
{user.uname}
)
--
cgit v1.2.3