You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/routers
Giteabot 1fed0e1adc
Fix profile page email display, respect settings (#23747) (#23756)
Backport #23747 by @wxiaoguang

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.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
api Match api migration behavior to web behavior (#23552) (#23573) 2 years ago
common Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300) 2 years ago
install Set `X-Gitea-Debug` header once (#23361) (#23381) 2 years ago
private Refactor the setting to make unit test easier (#22405) 2 years ago
utils Implement FSFE REUSE for golang files (#21840) 2 years ago
web Fix profile page email display, respect settings (#23747) (#23756) 2 years ago
init.go Refactor `setting.Database.UseXXX` to methods (#23354) (#23356) 2 years ago