diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-15 13:23:47 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-15 13:23:47 +0100 |
commit | ab165547fdf556b10b80898c030d54e20bff50af (patch) | |
tree | c9478742222e0f73fe4049edbc6840d3020eb235 /app/views/api/v1/statuses/_show.rabl | |
parent | 1f7c0ad8d3d336b036d16272716e41812f65f5d9 (diff) | |
parent | f81dc7a33ae975b640089e474b01c2081119f372 (diff) |
Merge branch 'feature/toot-app-source' of https://github.com/ineffyble/mastodon into ineffyble-feature/toot-app-source
Diffstat (limited to 'app/views/api/v1/statuses/_show.rabl')
-rw-r--r-- | app/views/api/v1/statuses/_show.rabl | 4 |
1 files changed, 4 insertions, 0 deletions
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 |