This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-25 06:06:06 -07:00
|
|
|
extends 'activitypub/types/ordered_collection.activitystreams2.rabl'
|
2017-04-22 20:21:10 -07:00
|
|
|
|
|
|
|
object @account
|
|
|
|
|
|
|
|
node(:totalItems) { @statuses.count }
|
2017-04-25 06:06:06 -07:00
|
|
|
node(:current) { @first_page_url } if @first_page_url
|
|
|
|
node(:first) { @first_page_url } if @first_page_url
|
|
|
|
node(:last) { @last_page_url } if @last_page_url
|
2017-04-22 20:21:10 -07:00
|
|
|
|
|
|
|
node(:name) { |account| t('activitypub.outbox.name', account_name: account_name(account)) }
|
|
|
|
node(:summary) { |account| t('activitypub.outbox.summary', account_name: account_name(account)) }
|
2017-04-25 06:06:06 -07:00
|
|
|
node(:updated) { |account| (@statuses.empty? ? account.created_at.to_time : @statuses.first.updated_at.to_time).xmlschema }
|