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.
|
|
|
module Mastodon
|
|
|
|
module Entities
|
|
|
|
class Account < Grape::Entity
|
|
|
|
expose :username
|
|
|
|
expose :domain
|
|
|
|
expose :display_name
|
|
|
|
expose :note
|
|
|
|
end
|
|
|
|
|
|
|
|
class Status < Grape::Entity
|
|
|
|
format_with(:iso_timestamp) { |dt| dt.iso8601 }
|
|
|
|
|
|
|
|
expose :uri
|
|
|
|
expose :text
|
|
|
|
expose :account, using: Mastodon::Entities::Account
|
|
|
|
|
|
|
|
with_options(format_with: :iso_timestamp) do
|
|
|
|
expose :created_at
|
|
|
|
expose :updated_at
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|