闭社主体 forked from https://github.com/tootsuite/mastodon
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.

12 lines
621 B

  1. extends 'activitypub/types/ordered_collection.activitystreams2.rabl'
  2. object @account
  3. node(:totalItems) { @statuses.count }
  4. node(:current) { @first_page_url } if @first_page_url
  5. node(:first) { @first_page_url } if @first_page_url
  6. node(:last) { @last_page_url } if @last_page_url
  7. node(:name) { |account| t('activitypub.outbox.name', account_name: account_name(account)) }
  8. node(:summary) { |account| t('activitypub.outbox.summary', account_name: account_name(account)) }
  9. node(:updated) { |account| (@statuses.empty? ? account.created_at.to_time : @statuses.first.updated_at.to_time).xmlschema }