twitter api: activity representer: add summary field for testsuite
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 24 Jun 2018 06:22:53 +0000 (06:22 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 12 Jul 2018 16:12:16 +0000 (16:12 +0000)
lib/pleroma/web/twitter_api/representers/activity_representer.ex

index bb77e61f3ac854cde0e5604d0cdceca121340c2d..26bfb79af16d5e5b0d90cda5c9f69f3137d9db9a 100644 (file)
@@ -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