about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorEvan Minto <evan.minto@gmail.com>2017-02-06 11:39:08 -0800
committerEvan Minto <evan.minto@gmail.com>2017-02-06 11:39:08 -0800
commit3fa5d059977388066d71e475e484728f6019d04e (patch)
treec86cfb1a8f48d8b5837b9adbbb30783867900105 /app/views/accounts
parent94e213c6c11fb3476a6c151425052775427574e1 (diff)
Simplify RABL
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/show.rabl9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/accounts/show.rabl b/app/views/accounts/show.rabl
index 76aa4a809..def91b425 100644
--- a/app/views/accounts/show.rabl
+++ b/app/views/accounts/show.rabl
@@ -2,8 +2,7 @@ extends 'activitypub/types/person.rabl'
 
 object @account
 
-node(:url)                { |account| TagManager.instance.url_for(account) }
-node(:name)               { |account| account.display_name }
-node(:preferredUsername)  { |account| account.username }
-node(:summary)            { |account| account.note }
-node(:icon)               { |account| full_asset_url(account.avatar.url(:original)) }
+attributes display_name: :name, username: :preferredUsername, note: :summary
+
+node(:icon)   { |account| full_asset_url(account.avatar.url(:original)) }
+node(:image)  { |account| full_asset_url(account.header.url(:original)) }