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.

16 lines
635 B

  1. extends 'activitypub/types/ordered_collection_page.activitystreams2.rabl'
  2. object @account
  3. node(:items) do
  4. @statuses.map { |status| api_activitypub_status_url(status) }
  5. end
  6. node(:next) { @next_page_url } if @next_page_url
  7. node(:prev) { @prev_page_url } if @prev_page_url
  8. node(:current) { @first_page_url } if @first_page_url
  9. node(:first) { @first_page_url } if @first_page_url
  10. node(:last) { @last_page_url } if @last_page_url
  11. node(:partOf) { @part_of_url } if @part_of_url
  12. node(:updated) { |account| (@statuses.empty? ? account.created_at.to_time : @statuses.first.updated_at.to_time).xmlschema }