mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
…as we do when publishing a mesage bus update: https://github.com/discourse/discourse/blob/b00b55995fd6b7361b4c0deb6e89e912e74811a2/app/models/user.rb#L871-L871
14 lines
273 B
Ruby
14 lines
273 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UserStatusSerializer < ApplicationSerializer
|
|
attributes :description, :emoji, :ends_at, :message_bus_last_id
|
|
|
|
def ends_at
|
|
object.ends_at&.iso8601
|
|
end
|
|
|
|
def message_bus_last_id
|
|
MessageBus.last_id("/user-status")
|
|
end
|
|
end
|