mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
FEATURE: hide emails behind a button for staff members
This commit is contained in:
@ -636,21 +636,11 @@ class User < ActiveRecord::Base
|
||||
|
||||
def associated_accounts
|
||||
result = []
|
||||
if twitter_user_info
|
||||
result << "Twitter(#{twitter_user_info.screen_name})"
|
||||
end
|
||||
|
||||
if facebook_user_info
|
||||
result << "Facebook(#{facebook_user_info.username})"
|
||||
end
|
||||
|
||||
if google_user_info
|
||||
result << "Google(#{google_user_info.email})"
|
||||
end
|
||||
|
||||
if github_user_info
|
||||
result << "Github(#{github_user_info.screen_name})"
|
||||
end
|
||||
result << "Twitter(#{twitter_user_info.screen_name})" if twitter_user_info
|
||||
result << "Facebook(#{facebook_user_info.username})" if facebook_user_info
|
||||
result << "Google(#{google_user_info.email})" if google_user_info
|
||||
result << "Github(#{github_user_info.screen_name})" if github_user_info
|
||||
|
||||
user_open_ids.each do |oid|
|
||||
result << "OpenID #{oid.url[0..20]}...(#{oid.email})"
|
||||
|
Reference in New Issue
Block a user