summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_test.exs
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-07-31 13:27:19 +0200
committerRoger Braun <roger@rogerbraun.net>2017-07-31 13:27:19 +0200
commit3063e3b44088009269cae1bbe49fc5f5e3423939 (patch)
treee8713f9e641414cc3033a0f572b00172bdd0f66f /test/web/twitter_api/twitter_api_test.exs
parent0ca3ab7b59edaec255aa3710fce8a9daa236b44d (diff)
downloadpleroma-3063e3b44088009269cae1bbe49fc5f5e3423939.tar.gz
pleroma-3063e3b44088009269cae1bbe49fc5f5e3423939.zip
Revert "Remove newlines completely so mastodon doesn't bug out."
This reverts commit 0ca3ab7b59edaec255aa3710fce8a9daa236b44d.
Diffstat (limited to 'test/web/twitter_api/twitter_api_test.exs')
-rw-r--r--test/web/twitter_api/twitter_api_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_test.exs b/test/web/twitter_api/twitter_api_test.exs
index cd05da508..1dd8ba2e6 100644
--- a/test/web/twitter_api/twitter_api_test.exs
+++ b/test/web/twitter_api/twitter_api_test.exs
@@ -33,7 +33,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPITest do
{ :ok, activity = %Activity{} } = TwitterAPI.create_status(user, input)
- assert get_in(activity.data, ["object", "content"]) == "<p>Hello again, <a href='shp'>@shp</a>.<br />This is on another line. #2hu #epic #phantasmagoric<br /><a href=\"http://example.org/image.jpg\" class='attachment'>image.jpg</a></p>"
+ assert get_in(activity.data, ["object", "content"]) == "<p>Hello again, <a href='shp'>@shp</a>.<br />\nThis is on another line. #2hu #epic #phantasmagoric<br />\n<a href=\"http://example.org/image.jpg\" class='attachment'>image.jpg</a></p>"
assert get_in(activity.data, ["object", "type"]) == "Note"
assert get_in(activity.data, ["object", "actor"]) == user.ap_id
assert get_in(activity.data, ["actor"]) == user.ap_id