mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 02:49:18 +00:00
formatter: use class='mention' on links to user profiles
helps mastodon frontend and apps have better context: https://mastodon.social/users/Gargron/statuses/100101267352899379
This commit is contained in:
parent
a9e36e5a64
commit
a8df7fc690
|
@ -200,7 +200,7 @@ def add_user_links({subs, text}, mentions) do
|
|||
ap_id = info["source_data"]["url"] || ap_id
|
||||
|
||||
short_match = String.split(match, "@") |> tl() |> hd()
|
||||
{uuid, "<span><a href='#{ap_id}'>@<span>#{short_match}</span></a></span>"}
|
||||
{uuid, "<span><a class='mention' href='#{ap_id}'>@<span>#{short_match}</span></a></span>"}
|
||||
end)
|
||||
|
||||
{subs, uuid_text}
|
||||
|
|
Loading…
Reference in a new issue