diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-15 14:04:56 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-15 14:04:56 +0100 |
commit | bfec9aaee077c6dd54081a89f697271d7a5c0a6a (patch) | |
tree | ececd729f513fd14998f2be30169973956ef6f59 /app/views/api | |
parent | 1f7c0ad8d3d336b036d16272716e41812f65f5d9 (diff) | |
parent | e9737c2235ec56502e650bd1adad3f32bf85f0ef (diff) |
Merge branch 'ineffyble-feature/toot-app-source'
Diffstat (limited to 'app/views/api')
-rw-r--r-- | app/views/api/v1/apps/show.rabl | 3 | ||||
-rw-r--r-- | app/views/api/v1/statuses/_show.rabl | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/app/views/api/v1/apps/show.rabl b/app/views/api/v1/apps/show.rabl new file mode 100644 index 000000000..6d9e607db --- /dev/null +++ b/app/views/api/v1/apps/show.rabl @@ -0,0 +1,3 @@ +object @application + +attributes :name, :website diff --git a/app/views/api/v1/statuses/_show.rabl b/app/views/api/v1/statuses/_show.rabl index a3391a67e..a3fc78763 100644 --- a/app/views/api/v1/statuses/_show.rabl +++ b/app/views/api/v1/statuses/_show.rabl @@ -6,6 +6,10 @@ node(:url) { |status| TagManager.instance.url_for(status) } node(:reblogs_count) { |status| defined?(@reblogs_counts_map) ? (@reblogs_counts_map[status.id] || 0) : status.reblogs.count } node(:favourites_count) { |status| defined?(@favourites_counts_map) ? (@favourites_counts_map[status.id] || 0) : status.favourites.count } +child :application do + extends 'api/v1/apps/show' +end + child :account do extends 'api/v1/accounts/show' end |