Lock icon for locked profiles

This commit is contained in:
Lim Chee Aun 2024-03-07 09:05:40 +08:00
parent e7e4f15234
commit ce190cbc50

View file

@ -62,6 +62,7 @@ function AccountBlock({
group, group,
followersCount, followersCount,
createdAt, createdAt,
locked,
} = account; } = account;
let [_, acct1, acct2] = acct.match(/([^@]+)(@.+)/i) || [, acct]; let [_, acct1, acct2] = acct.match(/([^@]+)(@.+)/i) || [, acct];
if (accountInstance) { if (accountInstance) {
@ -123,6 +124,12 @@ function AccountBlock({
@{acct1} @{acct1}
<wbr /> <wbr />
{acct2} {acct2}
{locked && (
<>
{' '}
<Icon icon="lock" size="s" alt="Locked" />
</>
)}
</span> </span>
{showActivity && ( {showActivity && (
<> <>