Default display_name text to username
This commit is contained in:
parent
5b3f14ab13
commit
1ad0247660
@ -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
|
||||
|
@ -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 ]
|
||||
]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user