mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Use static avatar in composer
This commit is contained in:
parent
911ee288df
commit
3a326194ad
2 changed files with 7 additions and 1 deletions
|
@ -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 && (
|
||||
<>
|
||||
|
|
|
@ -613,6 +613,7 @@ function Compose({
|
|||
account={currentAccountInfo}
|
||||
accountInstance={currentAccount.instanceURL}
|
||||
hideDisplayName
|
||||
useAvatarStatic
|
||||
/>
|
||||
)}
|
||||
{!standalone ? (
|
||||
|
|
Loading…
Reference in a new issue