You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
368 B

7 years ago
  1. extends 'activitypub/types/person.activitystreams2.rabl'
  2. object @account
  3. attributes display_name: :name, username: :preferredUsername, note: :summary
  4. node(:icon) { |account| full_asset_url(account.avatar.url(:original)) }
  5. node(:image) { |account| full_asset_url(account.header.url(:original)) }
  6. node(:outbox) { |account| api_activitypub_outbox_url(account.id) }