diff options
author | rinpatch <rinpatch@sdf.org> | 2019-01-18 18:31:25 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-01-18 18:31:25 +0300 |
commit | 74346a7035d950ede143d65f8364194cb116aaf5 (patch) | |
tree | f058b3fc2edd6868511bc6f832f75374bdbd117e /lib/pleroma/formatter.ex | |
parent | a38f21f51dc810221cbf910556910a10f6104956 (diff) | |
parent | 98d9dcd509ab6823e38b3ddbce1f5fc4f3d5a82c (diff) | |
download | pleroma-74346a7035d950ede143d65f8364194cb116aaf5.tar.gz |
Fix merge conflict
Diffstat (limited to 'lib/pleroma/formatter.ex')
-rw-r--r-- | lib/pleroma/formatter.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 2696f41c0..9e50ea3f4 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -155,7 +155,9 @@ defmodule Pleroma.Formatter do short_match = String.split(match, "@") |> tl() |> hd() {uuid, - "<span><a data-user='#{id}' class='mention' href='#{ap_id}'>@<span>#{short_match}</span></a></span>"} + "<span class='h-card'><a data-user='#{id}' class='u-url mention' href='#{ap_id}'>@<span>#{ + short_match + }</span></a></span>"} end) {subs, uuid_text} @@ -178,7 +180,7 @@ defmodule Pleroma.Formatter do subs ++ Enum.map(tags, fn {tag_text, tag, uuid} -> url = - "<a data-tag='#{tag}' href='#{Pleroma.Web.base_url()}/tag/#{tag}' rel='tag'>#{ + "<a class='hashtag' data-tag='#{tag}' href='#{Pleroma.Web.base_url()}/tag/#{tag}' rel='tag'>#{ tag_text }</a>" |