about summary refs log tree commit diff
path: root/app/views/accounts/show.activitystreams2.rabl
blob: 2c0a4ad3a08064dbb2773655f94ad5ac43519950 (plain) (blame)
1
2
3
4
5
6
7
8
9
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)) }
node(:outbox) { |account| api_activitypub_outbox_url(account.id) }