about summary refs log tree commit diff
path: root/app/views/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-07 01:14:12 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-07 01:14:12 +0100
commit23fc424b7aea139a0aff5cd347f46c81e50c2c56 (patch)
tree47ce5106180cac5ebe93adaa4c91edc2c5ce8b79 /app/views/api
parentb835f4aa1ce12cc31a721750a857d8d08a50069a (diff)
Account notes (bios) can now contain links. Character limit upped to 160
Diffstat (limited to 'app/views/api')
-rw-r--r--app/views/api/v1/accounts/show.rabl3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/api/v1/accounts/show.rabl b/app/views/api/v1/accounts/show.rabl
index 0d9e268a1..623329059 100644
--- a/app/views/api/v1/accounts/show.rabl
+++ b/app/views/api/v1/accounts/show.rabl
@@ -1,7 +1,8 @@
 object @account
 
-attributes :id, :username, :acct, :display_name, :note
+attributes :id, :username, :acct, :display_name
 
+node(:note)            { |account| Formatter.instance.simplified_format(account) }
 node(:url)             { |account| TagManager.instance.url_for(account) }
 node(:avatar)          { |account| full_asset_url(account.avatar.url(:large, false)) }
 node(:header)          { |account| full_asset_url(account.header.url(:medium, false)) }