1
0
Fork 0

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.
This commit is contained in:
Ryan Fox 2021-01-10 21:11:05 +00:00
parent 2fc0cbb852
commit 5043e89837
Signed by: flewkey
GPG Key ID: 94F56ADFD848851E
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ accountLink external account =
[ href account.url [ href account.url
, accountHref , accountHref
] ]
[ text <| "@" ++ account.username ] [ text <| "@" ++ account.acct ]
accountAvatarLink : Bool -> Account -> Html Msg accountAvatarLink : Bool -> Account -> Html Msg

View File

@ -218,7 +218,7 @@ statusView context ({ account, content, media_attachments, reblog, mentions } as
, div [ class "username" ] , div [ class "username" ]
[ a accountLinkAttributes [ a accountLinkAttributes
[ text (if account.display_name=="" then account.username else account.display_name) [ 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 , Lazy.lazy2 statusContentView context status