mirror of
https://github.com/discourse/discourse.git
synced 2024-12-20 00:43:52 +08:00
8421327845
…as we do when publishing a mesage bus update: 07c93918ec/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
|