forgejo/tests
Giteabot 1fed0e1adc
Fix profile page email display, respect settings () ()
Backport  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  . 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
 together, so this PR becomes simpler.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-03-28 07:55:20 +08:00
..
e2e Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
fuzz Move fuzz tests into tests/fuzz () 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files () 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Use correct README link to render the README () () 2023-03-04 00:38:11 -05:00
integration Fix profile page email display, respect settings () () 2023-03-28 07:55:20 +08:00
mssql.ini.tmpl Kd/ci playwright go test () 2022-09-02 15:18:23 -04:00
mysql.ini.tmpl Add some comments for recent code () 2023-02-02 11:39:38 -06:00
mysql8.ini.tmpl Kd/ci playwright go test () 2022-09-02 15:18:23 -04:00
pgsql.ini.tmpl Kd/ci playwright go test () 2022-09-02 15:18:23 -04:00
sqlite.ini.tmpl Add a simple test for external renderer () 2022-12-12 20:45:21 +08:00
test_utils.go Refactor setting.Database.UseXXX to methods () () 2023-03-07 20:11:44 +08:00
testlogger.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00