Skip to content
Snippets Groups Projects
Commit a8df7fc6 authored by kaniini's avatar kaniini
Browse files

formatter: use class='mention' on links to user profiles

helps mastodon frontend and apps have better context:
https://mastodon.social/users/Gargron/statuses/100101267352899379
parent a9e36e5a
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ defmodule Pleroma.Formatter 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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment