projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'update-tzdata' into 'develop'
[akkoma]
/
test
/
web
/
mastodon_api
/
account_view_test.exs
diff --git
a/test/web/mastodon_api/account_view_test.exs
b/test/web/mastodon_api/account_view_test.exs
index 2ba7c050559f9820766b367b463f3e8d5f1dada7..de6aeec720a9fc229830ed02a48e8bd4b708fdee 100644
(file)
--- a/
test/web/mastodon_api/account_view_test.exs
+++ b/
test/web/mastodon_api/account_view_test.exs
@@
-269,4
+269,10
@@
defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
result = AccountView.render("account.json", %{user: user, for: user})
assert result.pleroma[:settings_store] == nil
end
result = AccountView.render("account.json", %{user: user, for: user})
assert result.pleroma[:settings_store] == nil
end
+
+ test "sanitizes display names" do
+ user = insert(:user, name: "<marquee> username </marquee>")
+ result = AccountView.render("account.json", %{user: user})
+ refute result.display_name == "<marquee> username </marquee>"
+ end
end
end