mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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.
This commit is contained in:
parent
b6576d9473
commit
ea075fa4f7
@ -1,7 +1,15 @@
|
|||||||
class HiddenProfileSerializer < BasicUserSerializer
|
class HiddenProfileSerializer < BasicUserSerializer
|
||||||
attributes :profile_hidden?
|
attributes(
|
||||||
|
:profile_hidden?,
|
||||||
|
:title,
|
||||||
|
:primary_group_name
|
||||||
|
)
|
||||||
|
|
||||||
def profile_hidden?
|
def profile_hidden?
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def primary_group_name
|
||||||
|
object.primary_group.try(:name)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user