Revert "FIX: Move check to right serializer."
This reverts commit 793f933b6b
.
This commit is contained in:
parent
793f933b6b
commit
51e1c0b6ce
|
@ -1,6 +1,10 @@
|
|||
class BasicUserSerializer < ApplicationSerializer
|
||||
attributes :id, :username, :avatar_template
|
||||
|
||||
def include_name?
|
||||
SiteSetting.enable_names?
|
||||
end
|
||||
|
||||
def avatar_template
|
||||
if Hash === object
|
||||
User.avatar_template(user[:username], user[:uploaded_avatar_id])
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
class GroupPostUserSerializer < BasicUserSerializer
|
||||
attributes :title, :name
|
||||
|
||||
def include_name?
|
||||
SiteSetting.enable_names?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue