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/tests
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
..
e2e Implement FSFE REUSE for golang files (#21840) 2 years ago
fuzz Move fuzz tests into tests/fuzz (#22376) 2 years ago
gitea-lfs-meta Test views of LFS files (#22196) 2 years ago
gitea-repositories-meta Use correct README link to render the README (#23152) (#23264) 2 years ago
integration Fix profile page email display, respect settings (#23747) (#23756) 2 years ago
mssql.ini.tmpl Kd/ci playwright go test (#20123) 3 years ago
mysql.ini.tmpl Add some comments for recent code (#22725) 2 years ago
mysql8.ini.tmpl Kd/ci playwright go test (#20123) 3 years ago
pgsql.ini.tmpl Kd/ci playwright go test (#20123) 3 years ago
sqlite.ini.tmpl Add a simple test for external renderer (#20033) 2 years ago
test_utils.go Refactor `setting.Database.UseXXX` to methods (#23354) (#23356) 2 years ago
testlogger.go Implement FSFE REUSE for golang files (#21840) 2 years ago