about summary refs log tree commit diff
path: root/app/views/accounts/show.activitystreams2.rabl
blob: dabae3f297f6235c82a5e8b0c2993923c4927a6a (plain) (blame)
1
2
3
4
5
6
7
8
extends 'activitypub/types/person.activitystreams2.rabl'

object @account

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)) }