diff options
Diffstat (limited to 'app/views/api/accounts/show.rabl')
-rw-r--r-- | app/views/api/accounts/show.rabl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/api/accounts/show.rabl b/app/views/api/accounts/show.rabl new file mode 100644 index 000000000..e4c4883c8 --- /dev/null +++ b/app/views/api/accounts/show.rabl @@ -0,0 +1,9 @@ +object @account + +attributes :id, :username, :acct, :display_name, :note + +node(:url) { |account| url_for_target(account) } +node(:avatar) { |account| asset_url(account.avatar.url(:large, false)) } +node(:followers) { |account| account.followers.count } +node(:following) { |account| account.following.count } +node(:statuses) { |account| account.statuses.count } |