mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 05:55:19 +01:00
66fd8e7821
* Clean up collapsible components * Expose user Outboxes and AS2 representations of statuses * Save work thus far. * Fix bad merge. * Save my work * Clean up pagination. * First test working. * Add tests. * Add Forbidden error template. * Revert yarn.lock changes. * Fix code style deviations and use localized instead of hardcoded English text.
10 lines
368 B
Ruby
10 lines
368 B
Ruby
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) }
|