1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-12 15:49:28 -05:00
forgejo/models/unittest
Gusted 0905ce83ea
[PRIVACY] Disable Gravatar by default (#837)
- Resolves #259
- Replaces #716 (thanks @silentcode !)
- The main toggle _for now_ (due to the still weird settings migration to the database) is `GetDefaultDisableGravatar`, because it's used `loadPictureFrom` which in turn sets the default value for the install page which in turn is the explicit value that Forgejo will use to decide to enable or disable Gravatar after the install page.
- Tests still rely on the fact that gravatar is enabled by default for some tests, so there's a small hack in `MainTest` for that. This is not enabled per-tests as this would otherwise just cause random test failures for when rebasing happens.
- Unit tests ensures this value by default stays false.

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/837
(cherry picked from commit c6c7c1aa1e)
(cherry picked from commit f0bc5f63d4)
2023-06-19 18:15:59 +02:00
..
consistency.go Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
fixtures.go Enable forbidigo linter (#24278) 2023-04-24 05:50:58 -04:00
fscopy.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
reflection.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
testdb.go [PRIVACY] Disable Gravatar by default (#837) 2023-06-19 18:15:59 +02:00
unit_tests.go Test query must have "order by" explicitly to avoid unstable results (#24963) 2023-05-29 03:20:57 +00:00