diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-06-18 14:43:44 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-06-18 14:43:44 +0200 |
commit | fafb765c4808f111a98a307a148f635eb42af891 (patch) | |
tree | a60c558be9f4a63d3533c3c7cdb5d2b3a215395a /lib | |
parent | 8feec8d390f34114c5f42faf366f899a2b4af9fb (diff) | |
download | pleroma-fafb765c4808f111a98a307a148f635eb42af891.tar.gz |
Output tags list in TwAPI.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/twitter_api/representers/activity_representer.ex | 3 |
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 6f22e45fa..a36b873e4 100644 --- a/lib/pleroma/web/twitter_api/representers/activity_representer.ex +++ b/lib/pleroma/web/twitter_api/representers/activity_representer.ex @@ -118,7 +118,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do "repeat_num" => announcement_count, "favorited" => to_boolean(favorited), "repeated" => to_boolean(repeated), - "external_url" => activity.data["id"] + "external_url" => activity.data["id"], + "tags" => activity.data["object"]["tag"] || [] } end |