diff options
| author | William Pitcock <nenolod@dereferenced.org> | 2018-05-27 12:53:14 +0000 | 
|---|---|---|
| committer | William Pitcock <nenolod@dereferenced.org> | 2018-05-27 12:56:24 +0000 | 
| commit | a8df7fc69041e8d7a6ed71621159d2f7487e1ce7 (patch) | |
| tree | aa19ac1e00927e529b6e5eebadcf5e2130600a2b /lib | |
| parent | a9e36e5a64017502689a65fb329a301e428ebfaf (diff) | |
| download | pleroma-a8df7fc69041e8d7a6ed71621159d2f7487e1ce7.tar.gz pleroma-a8df7fc69041e8d7a6ed71621159d2f7487e1ce7.zip  | |
formatter: use class='mention' on links to user profiles
helps mastodon frontend and apps have better context:
https://mastodon.social/users/Gargron/statuses/100101267352899379
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pleroma/formatter.ex | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 53e2c204f..d23a284ca 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -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}  | 
