summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/controllers/mastodon_api_controller
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-09-23 22:41:31 +0000
committerkaniini <ariadne@dereferenced.org>2019-09-23 22:41:31 +0000
commit19263f30c3819f922586b537467e888574c334d7 (patch)
treee9c7a490b7ed245cf854c072aae932eb54fd38e8 /test/web/mastodon_api/controllers/mastodon_api_controller
parent760df67a7b767d113a0ff2b351f872caf8751832 (diff)
parentae1d371428e16b738b8ec638e411e5e8c1ac4937 (diff)
downloadpleroma-19263f30c3819f922586b537467e888574c334d7.tar.gz
pleroma-19263f30c3819f922586b537467e888574c334d7.zip
Merge branch 'support-rel-ugc' into 'develop'
Add support for `rel="ugc"` Closes #1255 See merge request pleroma/pleroma!1679
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.exs9
1 files changed, 4 insertions, 5 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 89d4ca37e..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
@@ -334,7 +333,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController.UpdateCredentialsTest do
assert account["fields"] == [
%{"name" => "foo", "value" => "bar"},
- %{"name" => "link", "value" => "<a href=\"http://cofe.io\">cofe.io</a>"}
+ %{"name" => "link", "value" => ~S(<a href="http://cofe.io" rel="ugc">cofe.io</a>)}
]
assert account["source"]["fields"] == [