twitterapi: activity view: expose message summary text
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 23 Jun 2018 06:08:09 +0000 (06:08 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 12 Jul 2018 16:11:36 +0000 (16:11 +0000)
lib/pleroma/web/twitter_api/views/activity_view.ex

index f418249e2d616c9539b9f1ba115effcb93fac6ce..55b5287f5e2bb4e94cfcde2bdc7ea646a2009f00 100644 (file)
@@ -255,7 +255,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView 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" => summary
     }
   end