Skip to content

A platform for community discussion. Free, open, simple.

FIX: Don't hide information from the card that is visible in the topic

Robin Wardea075fa4f731
diff --git a/app/serializers/hidden_profile_serializer.rb b/app/serializers/hidden_profile_serializer.rb
index 50075aee591..fc48024cf03 100644
--- a/app/serializers/hidden_profile_serializer.rb
+++ b/app/serializers/hidden_profile_serializer.rb
@@ -1,7 +1,15 @@
class HiddenProfileSerializer < BasicUserSerializer
- attributes :profile_hidden?
+ attributes(
+ :profile_hidden?,
+ :title,
+ :primary_group_name
+ )
def profile_hidden?
true
end
+
+ def primary_group_name
+ object.primary_group.try(:name)
+ end
end