1
0
Fork 0

Use static avatar in composer

This commit is contained in:
Lim Chee Aun 2023-11-12 11:01:44 +08:00
parent 911ee288df
commit 3a326194ad
2 changed files with 7 additions and 1 deletions

View file

@ -13,6 +13,7 @@ function AccountBlock({
skeleton, skeleton,
account, account,
avatarSize = 'xl', avatarSize = 'xl',
useAvatarStatic = false,
instance, instance,
external, external,
internal, internal,
@ -81,7 +82,11 @@ function AccountBlock({
} }
}} }}
> >
<Avatar url={avatar} size={avatarSize} squircle={bot} /> <Avatar
url={useAvatarStatic ? avatarStatic : avatar || avatarStatic}
size={avatarSize}
squircle={bot}
/>
<span class="account-block-content"> <span class="account-block-content">
{!hideDisplayName && ( {!hideDisplayName && (
<> <>

View file

@ -613,6 +613,7 @@ function Compose({
account={currentAccountInfo} account={currentAccountInfo}
accountInstance={currentAccount.instanceURL} accountInstance={currentAccount.instanceURL}
hideDisplayName hideDisplayName
useAvatarStatic
/> />
)} )}
{!standalone ? ( {!standalone ? (