forgejo/services/user
Gusted 44d00650ce
[MODERATION] Purge issues on user deletion
- Forgejo has the option to delete users, in which all data except
issues and comments are removed, this makes sense in some cases where
users need to be removed cleanly but without removing their existing bug
reports or comments to an discussion. In the case of spammers, admins
have the option to enable purging, where comments are removed.
- Add issues to the list of things to be removed if purge is checked.
- No unit testing, as this gigantic function doesn't have one to begin
with.
- Add integration test.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1268

(cherry picked from commit 3ed381c758)
2023-09-04 11:15:54 +02:00
..
avatar.go Refactor rename user and rename organization (#24052) 2023-05-21 23:13:47 +08:00
block.go [MODERATION] User blocking 2023-09-04 11:15:54 +02:00
block_test.go [MODERATION] User blocking 2023-09-04 11:15:54 +02:00
delete.go [MODERATION] Purge issues on user deletion 2023-09-04 11:15:54 +02:00
user.go fix incorrect repo url when changed the case of ownername (#25733) 2023-07-14 13:42:10 +08:00
user_test.go add unit test for user renaming (#26261) 2023-08-03 09:38:51 +08:00