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.

18 lines
627 B

7 years ago
  1. object @status
  2. attributes :id, :created_at, :in_reply_to_id
  3. node(:uri) { |status| uri_for_target(status) }
  4. node(:content) { |status| content_for_status(status) }
  5. node(:url) { |status| url_for_target(status) }
  6. node(:reblogs_count) { |status| status.reblogs_count }
  7. node(:favourites_count) { |status| status.favourites_count }
  8. node(:favourited) { |status| current_account.favourited?(status) }
  9. node(:reblogged) { |status| current_account.reblogged?(status) }
  10. child :reblog => :reblog do
  11. extends('api/statuses/show')
  12. end
  13. child :account do
  14. extends('api/accounts/show')
  15. end