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,
account,
avatarSize = 'xl',
useAvatarStatic = false,
instance,
external,
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">
{!hideDisplayName && (
<>

View file

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