0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-20 17:55:42 +01:00
gitea/routers/web
wxiaoguang 6706ac2a0f
Fix profile page email display, respect settings (#23747)
Always respect the `setting.UI.ShowUserEmail` and `KeepEmailPrivate`
setting.

* It doesn't make sense to show user's own E-mail to themself.
* Always hide the E-mail if KeepEmailPrivate=true, then the user could
know how their profile page looks like for others.
* Revert the `setting.UI.ShowUserEmail` change from #4981 . This setting
is used to control the E-mail display, not only for the user list page.

ps: the incorrect `<div .../>` tag on the profile page has been fixed by
#23748 together, so this PR becomes simpler.
2023-03-27 17:27:32 -04:00
..
admin
auth
events
explore
feed
healthcheck
misc Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
org Fix cancel button in the page of project edit not work (#23655) 2023-03-24 16:37:56 +08:00
repo Fix tags view (#23243) 2023-03-27 21:41:33 +08:00
shared
user Fix profile page email display, respect settings (#23747) 2023-03-27 17:27:32 -04:00
auth_windows.go
auth.go
base.go Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Editor preview support for external renderers (#23333) 2023-03-24 14:12:23 +08:00
webfinger.go