discourse/app/serializers/hidden_profile_serializer.rb
Robin Ward ea075fa4f7 FIX: Don't hide information from the card that is visible in the topic
It doesn't make sense to show less information on the card than already
visible.
2018-11-14 09:56:31 -05:00

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