mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 16:03:41 +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
|