discourse/app/serializers/user_status_serializer.rb

10 lines
224 B
Ruby

# frozen_string_literal: true
class UserStatusSerializer < ApplicationSerializer
attributes :description, :emoji, :ends_at, :message_bus_last_id
def message_bus_last_id
MessageBus.last_id("/user-status")
end
end