gitea/modules/repository
KN4CK3R c337ff0ec7
Add user blocking ()
Fixes 

This PR adds the abbility to block a user from a personal account or
organization to restrict how the blocked user can interact with the
blocker. The docs explain what's the consequence of blocking a user.

Screenshots:


![grafik](https://github.com/go-gitea/gitea/assets/1666336/4ed884f3-e06a-4862-afd3-3b8aa2488dc6)


![grafik](https://github.com/go-gitea/gitea/assets/1666336/ae6d4981-f252-4f50-a429-04f0f9f1cdf1)


![grafik](https://github.com/go-gitea/gitea/assets/1666336/ca153599-5b0f-4b4a-90fe-18bdfd6f0b6b)

---------

Co-authored-by: Lauris BH <lauris@nix.lv>
..
branch.go Simplify how git repositories are opened ()
collaborator.go Add user blocking ()
collaborator_test.go Even more `db.DefaultContext` refactor ()
commits.go Fix context cache bug & enable context cache for dashabord commits' authors ()
commits_test.go Make offline mode as default to no connect external avatar service by default ()
create.go Add user blocking ()
create_test.go Move createrepository from module to service layer ()
delete.go Even more `db.DefaultContext` refactor ()
env.go Implement actions ()
fork.go Reduce usage of `db.DefaultContext` ()
hooks.go Always write proc-receive hook for all git versions ()
init.go Move generate from module to service ()
init_test.go Make label templates have consistent behavior and priority ()
license.go Move createrepository from module to service layer ()
license_test.go Move createrepository from module to service layer ()
main_test.go make writing main test easier ()
push.go Improve ObjectFormat interface ()
repo.go Move migration functions to services layer ()
repo_test.go Don't remove all mirror repository's releases when mirroring ()
temp.go Implement FSFE REUSE for golang files ()