summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/mastodon_api_controller
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2019-09-19 14:39:52 +0700
committerEgor Kislitsyn <egor@kislitsyn.com>2019-09-19 14:56:10 +0700
commit95c948110ca130559fd6a5302011aa58900274ac (patch)
treef9362c395ae83694335acdde17d6749a155373ce /test/web/mastodon_api/controllers/mastodon_api_controller
parentd639cdcecb1b9cd2326b98c926dff8b0f4c27e3c (diff)
downloadpleroma-95c948110ca130559fd6a5302011aa58900274ac.tar.gz
pleroma-95c948110ca130559fd6a5302011aa58900274ac.zip
Add `rel="ugc"` to hashtags and mentions
Diffstat (limited to 'test/web/mastodon_api/controllers/mastodon_api_controller')
-rw-r--r--test/web/mastodon_api/controllers/mastodon_api_controller/update_credentials_test.exs7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/web/mastodon_api/controllers/mastodon_api_controller/update_credentials_test.exs b/test/web/mastodon_api/controllers/mastodon_api_controller/update_credentials_test.exs
index 1e8d0d03b..560f55137 100644
--- a/test/web/mastodon_api/controllers/mastodon_api_controller/update_credentials_test.exs
+++ b/test/web/mastodon_api/controllers/mastodon_api_controller/update_credentials_test.exs
@@ -86,10 +86,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
assert user = json_response(conn, 200)
assert user["note"] ==
- ~s(I drink <a class="hashtag" data-tag="cofe" href="http://localhost:4001/tag/cofe" rel="tag">#cofe</a> with <span class="h-card"><a data-user=") <>
- user2.id <>
- ~s(" class="u-url mention" href=") <>
- user2.ap_id <> ~s(">@<span>) <> user2.nickname <> ~s(</span></a></span>)
+ ~s(I drink <a class="hashtag" data-tag="cofe" href="http://localhost:4001/tag/cofe">#cofe</a> with <span class="h-card"><a data-user="#{
+ user2.id
+ }" class="u-url mention" href="#{user2.ap_id}" rel="ugc">@<span>#{user2.nickname}</span></a></span>)
end
test "updates the user's locking status", %{conn: conn} do