Add rel="ugc" to hashtags and mentions

This commit is contained in:
Egor Kislitsyn 2019-09-19 14:39:52 +07:00
commit 95c948110c
7 changed files with 35 additions and 28 deletions

View file

@ -1294,9 +1294,9 @@ defmodule Pleroma.UserTest do
bio = "A.k.a. @nick@domain.com"
expected_text =
"A.k.a. <span class='h-card'><a data-user='#{remote_user.id}' class='u-url mention' href='#{
~s(A.k.a. <span class="h-card"><a data-user="#{remote_user.id}" class="u-url mention" href="#{
remote_user.ap_id
}'>@<span>nick@domain.com</span></a></span>"
}" rel="ugc">@<span>nick@domain.com</span></a></span>)
assert expected_text == User.parse_bio(bio, user)
end