aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-06-24 06:22:53 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-07-12 16:12:16 +0000
commitf03e57f7647f4d302359680c7eb7fe48433c7beb (patch)
tree802c8d77681ea20c68ede54a9bf79ea5a7944658 /lib
parent152a526237abb846b96a3c7b4001c8bd0c7409f9 (diff)
downloadpleroma-f03e57f7647f4d302359680c7eb7fe48433c7beb.tar.gz
twitter api: activity representer: add summary field for testsuite
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/twitter_api/representers/activity_representer.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/twitter_api/representers/activity_representer.ex b/lib/pleroma/web/twitter_api/representers/activity_representer.ex
index bb77e61f3..26bfb79af 100644
--- a/lib/pleroma/web/twitter_api/representers/activity_representer.ex
+++ b/lib/pleroma/web/twitter_api/representers/activity_representer.ex
@@ -191,7 +191,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
"tags" => tags,
"activity_type" => "post",
"possibly_sensitive" => possibly_sensitive,
- "visibility" => Pleroma.Web.MastodonAPI.StatusView.get_visibility(object)
+ "visibility" => Pleroma.Web.MastodonAPI.StatusView.get_visibility(object),
+ "summary" => object["summary"]
}
end