aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-05-01 10:45:32 +0000
committerlambda <lain@soykaf.club>2019-05-01 10:45:32 +0000
commit0bcdaf378ee41c3845151b59d8820b799532c9a8 (patch)
treee90070b714d696887ae6280c1572e40559433019 /test
parent297596ce4800bed3e6b85721ec384a2a0a0a983f (diff)
parent85fa2fbce4ee315a15b517fae4bc9b5474d1db5a (diff)
downloadpleroma-0bcdaf378ee41c3845151b59d8820b799532c9a8.tar.gz
Merge branch 'bugfix/web-notification-special-char' into 'develop'
fix the web push notification with special char for status created See merge request pleroma/pleroma!1092
Diffstat (limited to 'test')
-rw-r--r--test/web/twitter_api/views/activity_view_test.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/web/twitter_api/views/activity_view_test.exs b/test/web/twitter_api/views/activity_view_test.exs
index d84ab7420..85815ba7e 100644
--- a/test/web/twitter_api/views/activity_view_test.exs
+++ b/test/web/twitter_api/views/activity_view_test.exs
@@ -371,4 +371,14 @@ defmodule Pleroma.Web.TwitterAPI.ActivityViewTest do
assert length(result["attachments"]) == 1
assert result["summary"] == "Friday Night"
end
+
+ test "special characters are not escaped in text field for status created" do
+ text = "<3 is on the way"
+
+ {:ok, activity} = CommonAPI.post(insert(:user), %{"status" => text})
+
+ result = ActivityView.render("activity.json", activity: activity)
+
+ assert result["text"] == text
+ end
end