diff options
author | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-24 07:06:17 +0545 |
---|---|---|
committer | Sachin Joshi <satchin.joshi@gmail.com> | 2019-04-24 07:06:17 +0545 |
commit | 963d5774af7efb57fa306b3ac164049f8958a72c (patch) | |
tree | a25da3387c7379c2dacebe621b4954ca90e4f318 /test | |
parent | 7fcbda702e76b6390076c28832f5aea80086d15a (diff) | |
download | pleroma-963d5774af7efb57fa306b3ac164049f8958a72c.tar.gz pleroma-963d5774af7efb57fa306b3ac164049f8958a72c.zip |
fix the status notification with special char
Diffstat (limited to 'test')
-rw-r--r-- | test/web/twitter_api/views/activity_view_test.exs | 10 |
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 |