1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/routers/web/user
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
..
setting add user rename endpoint to admin api (#22789) 2023-03-14 03:45:21 -04:00
avatar.go
code.go
home_test.go
home.go
main_test.go
notification.go Fix pagination on /notifications/watching (#23564) 2023-03-20 21:07:14 -04:00
package.go
profile.go Fix profile page email display, respect settings (#23747) 2023-03-27 17:27:32 -04:00
search.go
stop_watch.go
task.go