about summary refs log tree commit diff
path: root/app/views/accounts/show.rabl
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/accounts/show.rabl')
-rw-r--r--app/views/accounts/show.rabl9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/accounts/show.rabl b/app/views/accounts/show.rabl
new file mode 100644
index 000000000..76aa4a809
--- /dev/null
+++ b/app/views/accounts/show.rabl
@@ -0,0 +1,9 @@
+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)) }