forgejo/models/user
Gusted 73776d6195
[MODERATION] add user blocking API
- Follow up for: #540, #802
- Add API routes for user blocking from user and organization
perspective.
- The new routes have integration testing.
- The new model functions have unit tests.
- Actually quite boring to write and to read this pull request.

(cherry picked from commit f3afaf15c7)
(cherry picked from commit 6d754db3e5)
(cherry picked from commit d0fc8bc9d3)
(cherry picked from commit 9a53b0d1a0)
(cherry picked from commit 44a2a4fd48)
(cherry picked from commit 182025db9c)
(cherry picked from commit 558a35963e)
2023-07-17 00:26:42 +02:00
..
avatar.go Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
badge.go Remove most path-based golangci exclusions (#24214) 2023-04-19 22:08:01 -04:00
block.go [MODERATION] add user blocking API 2023-07-17 00:26:42 +02:00
block_test.go [MODERATION] add user blocking API 2023-07-17 00:26:42 +02:00
email_address.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
email_address_test.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
error.go Refactor rename user and rename organization (#24052) 2023-05-21 23:13:47 +08:00
external_login_user.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
follow.go [MODERATION] organization blocking a user (#802) 2023-07-17 00:26:42 +02:00
follow_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
list.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
must_change_password.go Add command to bulk set must-change-password (#22823) 2023-02-14 16:12:19 -06:00
openid.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
openid_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
redirect.go Fix bug when change user name (#25637) (#25646) 2023-07-03 14:23:35 +03:00
redirect_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
search.go Add login name and source id for admin user searching API (#23376) 2023-03-15 19:53:01 +08:00
setting.go Add Debian package registry (#24426) 2023-05-02 12:31:35 -04:00
setting_keys.go Show outdated comments in files changed tab (#24936) (#25428) 2023-06-22 08:34:42 +00:00
setting_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
user.go Show bot label next to username when rendering autor link if the user is a bot (#24943) 2023-05-26 18:58:11 +02:00
user_system.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
user_test.go [MODERATION] organization blocking a user (#802) 2023-07-17 00:26:42 +02:00
user_update.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00