about summary refs log tree commit diff
path: root/app/views/api/v1/statuses
diff options
context:
space:
mode:
authorEffy Elden <git@effy.is>2017-01-15 08:58:50 +1100
committerEffy Elden <git@effy.is>2017-01-15 08:58:50 +1100
commitd6bc0e8db4d25a4533feb56164b0d9cd3ef2af6e (patch)
tree60ab246a9e55deb6a64efee86a6a062cac94f440 /app/views/api/v1/statuses
parentf63f0c46253f8d3c5524645160cbfe0c70cdec2f (diff)
Add tracking of OAuth app that posted a status, extend OAuth apps to have optional website field, add application details to API, show application name and website on detailed status views. Resolves #11
Diffstat (limited to 'app/views/api/v1/statuses')
-rw-r--r--app/views/api/v1/statuses/_show.rabl4
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