mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	UI config to toggle whether user email shows up in Explore Users (#336)
* UI config to toggle whether user email shows up in Explore Users
* Recommendation made by @tboerger
66a1c59fe7 (r94122732)
* fixed typo, rename ShowUserEmailInExplore to ShowUserEmail
* Fixed typo merged conflict
* Hide email in the user profile page
if you are active ShowUserEmail
ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725
* Please replace MustBool() with MustBool(true)
			
			
This commit is contained in:
		
				
					committed by
					
						 Lunny Xiao
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							a09a3dcabb
						
					
				
				
					commit
					787fda53ef
				
			| @@ -203,6 +203,7 @@ var ( | ||||
| 		FeedMaxCommitNum   int | ||||
| 		ThemeColorMetaTag  string | ||||
| 		MaxDisplayFileSize int64 | ||||
| 		ShowUserEmail      bool | ||||
|  | ||||
| 		Admin struct { | ||||
| 			UserPagingNum   int | ||||
| @@ -820,6 +821,8 @@ please consider changing to GITEA_CUSTOM`) | ||||
| 	ShowFooterVersion = Cfg.Section("other").Key("SHOW_FOOTER_VERSION").MustBool(true) | ||||
| 	ShowFooterTemplateLoadTime = Cfg.Section("other").Key("SHOW_FOOTER_TEMPLATE_LOAD_TIME").MustBool(true) | ||||
|  | ||||
| 	UI.ShowUserEmail = Cfg.Section("ui").Key("SHOW_USER_EMAIL").MustBool(true) | ||||
|  | ||||
| 	HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt")) | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user