diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-05-27 13:16:10 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-05-27 13:16:10 +0000 |
commit | 8216d5e40e31970b450524d39b634a84f6ec415c (patch) | |
tree | da0bfd697125a6116278c8cd9548affe41b94d18 /lib | |
parent | a9e36e5a64017502689a65fb329a301e428ebfaf (diff) | |
parent | d7eb2e1b6563bd298824f1e3fd691bc68764b3fa (diff) | |
download | pleroma-8216d5e40e31970b450524d39b634a84f6ec415c.tar.gz |
Merge branch 'feature/mastodon-context-microformat' into 'develop'
formatter: use class='mention' on links to user profiles
See merge request pleroma/pleroma!178
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/formatter.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 53e2c204f..df7ffbc41 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -200,7 +200,9 @@ 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} |