1
0
Fork 0

Default display_name text to username

This commit is contained in:
Ryan Fox 2021-01-10 19:23:49 +00:00
parent 5b3f14ab13
commit 1ad0247660
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ accountView subView currentUser accountInfo =
, muteButton currentUser accountInfo.relationship account
, blockButton currentUser accountInfo.relationship account
, Common.accountAvatarLink True account
, span [ class "account-display-name" ] [ text account.display_name ]
, span [ class "account-display-name" ] [ text (if account.display_name=="" then account.username else account.display_name) ]
, span [ class "account-username" ]
[ Common.accountLink True account
, case accountInfo.relationship of

View File

@ -222,7 +222,7 @@ statusView context ({ account, content, media_attachments, reblog, mentions } as
[ Common.accountAvatarLink False account
, div [ class "username" ]
[ a accountLinkAttributes
[ text account.display_name
[ text (if account.display_name=="" then account.username else account.display_name)
, span [ class "acct" ] [ text <| " @" ++ account.username ]
]
]