Merge branch 'develop' into bugfix/web-notification-special-char
[akkoma] / test / web / twitter_api / views / activity_view_test.exs
index d84ab74208fd5910fb344a17df13d0ee9af03d83..85815ba7e98a8028409fe84abdec421b0cb37718 100644 (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