aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSachin Joshi <satchin.joshi@gmail.com>2019-04-24 07:06:17 +0545
committerSachin Joshi <satchin.joshi@gmail.com>2019-04-24 07:06:17 +0545
commit963d5774af7efb57fa306b3ac164049f8958a72c (patch)
treea25da3387c7379c2dacebe621b4954ca90e4f318 /test
parent7fcbda702e76b6390076c28832f5aea80086d15a (diff)
downloadpleroma-963d5774af7efb57fa306b3ac164049f8958a72c.tar.gz
fix the status notification with special char
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