The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

24 rader
484 B

  1. module Mastodon
  2. module Entities
  3. class Account < Grape::Entity
  4. expose :username
  5. expose :domain
  6. expose :display_name
  7. expose :note
  8. end
  9. class Status < Grape::Entity
  10. format_with(:iso_timestamp) { |dt| dt.iso8601 }
  11. expose :uri
  12. expose :text
  13. expose :account, using: Mastodon::Entities::Account
  14. with_options(format_with: :iso_timestamp) do
  15. expose :created_at
  16. expose :updated_at
  17. end
  18. end
  19. end
  20. end