diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-01-16 03:53:36 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-01-16 03:54:01 +0000 |
commit | 461ab9489db63d375f0d604ad9288e8e916d0beb (patch) | |
tree | b8cbb0d2e459aed055503075f7d7cbca69100d20 /lib | |
parent | 1ddab78247c541eb3895042a40a2ffcbcc2d751f (diff) | |
download | pleroma-461ab9489db63d375f0d604ad9288e8e916d0beb.tar.gz |
formatter: improve microformats markup
Diffstat (limited to 'lib')
-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 d80ae6576..4149265a2 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -145,7 +145,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} @@ -168,7 +170,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>" |