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
This commit is contained in:
parent
f63f0c4625
commit
d6bc0e8db4
13 changed files with 38 additions and 6 deletions
3
app/views/api/v1/apps/show.rabl
Normal file
3
app/views/api/v1/apps/show.rabl
Normal file
|
@ -0,0 +1,3 @@
|
|||
object @application
|
||||
|
||||
attributes :id, :name, :website
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue