mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:54:22 +08:00
ea075fa4f7
It doesn't make sense to show less information on the card than already visible.
16 lines
238 B
Ruby
16 lines
238 B
Ruby
class HiddenProfileSerializer < BasicUserSerializer
|
|
attributes(
|
|
:profile_hidden?,
|
|
:title,
|
|
:primary_group_name
|
|
)
|
|
|
|
def profile_hidden?
|
|
true
|
|
end
|
|
|
|
def primary_group_name
|
|
object.primary_group.try(:name)
|
|
end
|
|
end
|