summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/representers
diff options
context:
space:
mode:
authorscarlett <nia@netbsd.org>2019-01-06 10:16:40 +0000
committerscarlett <nia@netbsd.org>2019-01-06 10:19:00 +0000
commit52493467ac314ec58ed6123d3581428a82ec170c (patch)
tree9aa03f2d179de2cacc949c5eb33d23a3b9a48dfd /test/web/twitter_api/representers
parentb0e8e521fbbae4f601c6d2f449ea0e3effe57932 (diff)
downloadpleroma-52493467ac314ec58ed6123d3581428a82ec170c.tar.gz
pleroma-52493467ac314ec58ed6123d3581428a82ec170c.zip
Twitter API: Add a summary_html field.
The intention here is to allow proper subject copying when it contains emoji, obviously this will require minor frontend changes, though.
Diffstat (limited to 'test/web/twitter_api/representers')
-rw-r--r--test/web/twitter_api/representers/activity_representer_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs
index 2ac32aeb2..ab3e04985 100644
--- a/test/web/twitter_api/representers/activity_representer_test.exs
+++ b/test/web/twitter_api/representers/activity_representer_test.exs
@@ -163,7 +163,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
"possibly_sensitive" => true,
"uri" => activity.data["object"]["id"],
"visibility" => "direct",
- "summary" => "2hu"
+ "summary" => "2hu",
+ "summary_html" => "2hu"
}
assert ActivityRepresenter.to_map(activity, %{