Skip to content

Commit

Permalink
fix: display emojis in follow notification (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse authored Jul 18, 2024
1 parent cb5ba07 commit 276b985
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/View/Notification.elm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Mastodon.Model exposing (..)
import Types exposing (..)
import View.Common as Common
import View.Events exposing (..)
import View.Formatter exposing (formatContent)
import View.Formatter exposing (formatContentWithEmojis, getDisplayNameForAccount)
import View.Status exposing (statusActionsView, statusView)


Expand Down Expand Up @@ -122,11 +122,17 @@ notificationFollowView _ { accounts } =
div [ class "status follow-profile" ]
[ Common.accountAvatarLink False Nothing account
, div [ class "username" ]
[ Common.accountLink False account
[ a
[ href <| "#account/" ++ account.id
]
(getDisplayNameForAccount account
++ [ span [ class "acct" ] [ text <| " @" ++ account.acct ]
]
)
, span [ class "btn-sm follow-profile-date" ]
[ Common.icon "time", text <| Common.formatDate created_at ]
]
, formatContent account.note []
, formatContentWithEmojis account.note [] account.emojis
|> div
[ class "status-text"
, onClick <| Navigate ("#account/" ++ account.id)
Expand Down

0 comments on commit 276b985

Please sign in to comment.