Revert "FEATURE: display github profile links on user card and profile"

This reverts commit 95c518329a077997cd859a36fe3558dae325890b.
This commit is contained in:
Sam
2014-11-05 07:45:35 +11:00
parent e8a750e27a
commit cc9b040502
8 changed files with 2 additions and 31 deletions

View File

@ -48,8 +48,7 @@ class UserSerializer < BasicUserSerializer
:has_title_badges,
:edit_history_public,
:custom_fields,
:user_fields,
:github_screen_name
:user_fields
has_one :invited_by, embed: :object, serializer: BasicUserSerializer
has_many :custom_groups, embed: :object, serializer: BasicGroupSerializer
@ -89,11 +88,6 @@ class UserSerializer < BasicUserSerializer
###
### ATTRIBUTES
###
def github_screen_name
if SiteSetting.public_github_screen_name
object.github_user_info && object.github_user_info.screen_name
end
end
def include_email?
object.id && object.id == scope.user.try(:id)