2020-01-27 10:08:51 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class UserStatus < Grape::Entity
|
|
|
|
expose :emoji
|
|
|
|
expose :message
|
2020-10-29 14:09:11 -04:00
|
|
|
expose :availability
|
2020-01-27 10:08:51 -05:00
|
|
|
expose :message_html do |entity|
|
|
|
|
MarkupHelper.markdown_field(entity, :message)
|
|
|
|
end
|
2021-02-12 13:08:59 -05:00
|
|
|
expose :clear_status_at
|
2020-01-27 10:08:51 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|