diff options
| author | rinpatch <rinpatch@sdf.org> | 2020-01-30 19:47:57 +0300 |
|---|---|---|
| committer | rinpatch <rinpatch@sdf.org> | 2020-02-02 14:46:32 +0300 |
| commit | 983a87175e6f83da1828630cbaad4b33b04c6d81 (patch) | |
| tree | 95e3843432385cde82a7165ad646ad520a31463a /test/web/mastodon_api/views | |
| parent | 946de2299cccebac6718e3a132397ff5c06c67ee (diff) | |
| download | pleroma-983a87175e6f83da1828630cbaad4b33b04c6d81.tar.gz pleroma-983a87175e6f83da1828630cbaad4b33b04c6d81.zip | |
mastodon API: do not sanitize html in non-html fields
Diffstat (limited to 'test/web/mastodon_api/views')
| -rw-r--r-- | test/web/mastodon_api/views/account_view_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/views/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs index 2107bb85c..00c294845 100644 --- a/test/web/mastodon_api/views/account_view_test.exs +++ b/test/web/mastodon_api/views/account_view_test.exs @@ -368,10 +368,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do assert result.pleroma[:settings_store] == nil end - test "sanitizes display names" do + test "doesn't sanitize display names" do user = insert(:user, name: "<marquee> username </marquee>") result = AccountView.render("show.json", %{user: user}) - refute result.display_name == "<marquee> username </marquee>" + assert result.display_name == "<marquee> username </marquee>" end test "never display nil user follow counts" do |
