mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 14:29:38 +08:00

This is a follow-up to https://github.com/discourse/discourse/pull/25883. Somehow I forgot to address this comment –https://github.com/discourse/discourse/pull/25883#discussion_r1503234622
22 lines
487 B
Ruby
22 lines
487 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FoundUserWithStatusSerializer < FoundUserSerializer
|
|
include UserStatusMixin
|
|
|
|
def initialize(object, options = {})
|
|
super
|
|
options[:include_status] = true
|
|
deprecated
|
|
end
|
|
|
|
private
|
|
|
|
def deprecated
|
|
message =
|
|
"FoundUserWithStatusSerializer is deprecated. " \
|
|
"Use FoundUserSerializer with the include_status option instead."
|
|
|
|
Discourse.deprecate(message, since: "3.3.0.beta1", drop_from: "3.3.0.beta2")
|
|
end
|
|
end
|