Show username in boost if no display_name found

This commit is contained in:
Ryan Fox 2021-01-13 21:26:55 +00:00
parent dae4d98f54
commit 0fd0441093
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E

View File

@ -225,7 +225,10 @@ statusView context ({ account, content, media_attachments, reblog, mentions, pin
[ p [ class "status-info" ]
[ Common.icon "fire"
, a (accountLinkAttributes ++ [ class "reblogger" ])
[ text <| " " ++ account.display_name ]
[ text <| " " ++ if account.display_name == "" then
account.username
else
account.display_name]
, text " boosted"
]
, Lazy.lazy2 statusView context reblog