aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-06-18 14:43:44 +0200
committerRoger Braun <roger@rogerbraun.net>2017-06-18 14:43:44 +0200
commitfafb765c4808f111a98a307a148f635eb42af891 (patch)
treea60c558be9f4a63d3533c3c7cdb5d2b3a215395a /lib
parent8feec8d390f34114c5f42faf366f899a2b4af9fb (diff)
downloadpleroma-fafb765c4808f111a98a307a148f635eb42af891.tar.gz
Output tags list in TwAPI.
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 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