diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index ebc55e48..3f3abeba 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -121,6 +121,7 @@ function AccountInfo({ username, memorial, moved, + roles, } = info || {}; let headerIsAvatar = false; let { header, headerStatic } = info || {}; @@ -134,6 +135,12 @@ function AccountInfo({ } } + const accountInstance = useMemo(() => { + if (!url) return null; + const domain = new URL(url).hostname; + return domain; + }, [url]); + const [headerCornerColors, setHeaderCornerColors] = useState([]); const followersIterator = useRef(); @@ -381,6 +388,17 @@ function AccountInfo({ Group )} + {roles?.map((role) => ( + + {role.name} + {!!accountInstance && ( + <> + {' '} + {accountInstance} + + )} + + ))}