From 5043e89837392263c60aabe3ba65d756bec7ba6c Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 10 Jan 2021 21:11:05 +0000 Subject: [PATCH] Show acct instead of username where applicable This allows users to see the instance used by the poster in the timeline, and I like the look of it better. --- src/View/Common.elm | 2 +- src/View/Status.elm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Common.elm b/src/View/Common.elm index 3fb1080..3cc3e80 100644 --- a/src/View/Common.elm +++ b/src/View/Common.elm @@ -42,7 +42,7 @@ accountLink external account = [ href account.url , accountHref ] - [ text <| "@" ++ account.username ] + [ text <| "@" ++ account.acct ] accountAvatarLink : Bool -> Account -> Html Msg diff --git a/src/View/Status.elm b/src/View/Status.elm index 6e3845c..edfd7d7 100644 --- a/src/View/Status.elm +++ b/src/View/Status.elm @@ -218,7 +218,7 @@ statusView context ({ account, content, media_attachments, reblog, mentions } as , div [ class "username" ] [ a accountLinkAttributes [ text (if account.display_name=="" then account.username else account.display_name) - , span [ class "acct" ] [ text <| " @" ++ account.username ] + , span [ class "acct" ] [ text <| " @" ++ account.acct ] ] ] , Lazy.lazy2 statusContentView context status