From 0fd044109302d7b1720175c90892d0e6d296805d Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Wed, 13 Jan 2021 21:26:55 +0000 Subject: [PATCH] Show username in boost if no display_name found --- src/View/Status.elm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/View/Status.elm b/src/View/Status.elm index caf689e..a34074f 100644 --- a/src/View/Status.elm +++ b/src/View/Status.elm @@ -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