summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-04-09 17:25:31 +0000
committerrinpatch <rinpatch@sdf.org>2019-04-09 17:25:31 +0000
commit144648de92abea7330cf264b7608634a27bb6bdf (patch)
tree52b9b61ea678915fa3a7502c99373bc48382da6d /test
parent0a02ed7a2f63abc80fbef70c1a3ad64c01516a75 (diff)
parent4a6855d9eedf07159520b2205c554c891e70c7d4 (diff)
downloadpleroma-144648de92abea7330cf264b7608634a27bb6bdf.tar.gz
pleroma-144648de92abea7330cf264b7608634a27bb6bdf.zip
Merge branch 'mastoapi/plaintext-statuses' into 'develop'
Provide plaintext representations of content/cw in MastoAPI Closes #787 See merge request pleroma/pleroma!1035
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/status_view_test.exs6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index 8db92ac16..db2fdc2f6 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -101,7 +101,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
muted: false,
pinned: false,
sensitive: false,
- spoiler_text: note.data["object"]["summary"],
+ spoiler_text: HtmlSanitizeEx.basic_html(note.data["object"]["summary"]),
visibility: "public",
media_attachments: [],
mentions: [],
@@ -126,7 +126,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
],
pleroma: %{
local: true,
- conversation_id: convo_id
+ conversation_id: convo_id,
+ content: %{"text/plain" => HtmlSanitizeEx.strip_tags(note.data["object"]["content"])},
+ spoiler_text: %{"text/plain" => HtmlSanitizeEx.strip_tags(note.data["object"]["summary"])}
}
}