fix the status notification with special char

This commit is contained in:
Sachin Joshi 2019-04-24 07:06:17 +05:45
commit 963d5774af
2 changed files with 11 additions and 1 deletions

View file

@ -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