wxiaoguang
136f7d18aa
fix: api error message ( #38031 )
...
Fix various abuses and mistakes
2026-06-08 16:58:42 +08:00
Copilot
5fe4f962e8
refactor(api): clarify APIError message usage and fix legacy lint error ( #38012 )
...
Avoid unclear & fragile "any" tricks, fix various abuses
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-06-07 06:19:39 +00:00
Lunny Xiao
61b1a39efe
chore: Move import path from code.gitea.io/gitea to gitea.dev ( #37873 )
2026-05-26 15:49:31 -07:00
PineBale
4695110d5f
Update Block a user form ( #37359 )
...
Use the new "form-fetch-action" for better user experience, and use
JSONError to show error messages.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-04-23 02:07:02 +08:00
silverwind
0724344a8a
Fix CodeQL code scanning alerts ( #36858 )
...
Fixes 10 CodeQL code scanning alerts:
- Change `NewPagination`/`SetLinkHeader` to accept `int64` for total
count, clamping internally to fix incorrect-integer-conversion alerts
([#110 ](https://github.com/go-gitea/gitea/security/code-scanning/110 ),
[#114 ](https://github.com/go-gitea/gitea/security/code-scanning/114 ),
[#115 ](https://github.com/go-gitea/gitea/security/code-scanning/115 ),
[#116 ](https://github.com/go-gitea/gitea/security/code-scanning/116 ))
- Use `strconv.Atoi()` in `htmlrenderer.go` to avoid int64 intermediate
([#105 ](https://github.com/go-gitea/gitea/security/code-scanning/105 ),
[#106 ](https://github.com/go-gitea/gitea/security/code-scanning/106 ))
- Clamp regex match indices in `escape_stream.go` to fix
allocation-size-overflow
([#161 ](https://github.com/go-gitea/gitea/security/code-scanning/161 ),
[#162 ](https://github.com/go-gitea/gitea/security/code-scanning/162 ),
[#163 ](https://github.com/go-gitea/gitea/security/code-scanning/163 ))
- Cap slice pre-allocation in `GetIssueDependencies`
([#181 ](https://github.com/go-gitea/gitea/security/code-scanning/181 ))
---------
Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-03-08 14:35:50 +00:00
TheFox0x7
403a73dca0
Add paging headers ( #36521 )
...
Adds support for paging in admin/hooks api endpoint
fixes: https://github.com/go-gitea/gitea/issues/36516
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-authored-by: techknowlogick <matti@mdranta.net >
2026-02-06 13:12:05 +00:00
wxiaoguang
15e020eec8
Refactor error system ( #33626 )
2025-02-17 12:41:03 -08:00
wxiaoguang
f35850f48e
Refactor error system ( #33610 )
2025-02-16 22:13:17 -08:00
wxiaoguang
43c7a2e7b1
Refactor names ( #31405 )
...
This PR only does "renaming":
* `Route` should be `Router` (and chi router is also called "router")
* `Params` should be `PathParam` (to distingush it from URL query param, and to match `FormString`)
* Use lower case for private functions to avoid exposing or abusing
2024-06-19 06:32:45 +08:00
KN4CK3R
c337ff0ec7
Add user blocking ( #29028 )
...
Fixes #17453
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:



---------
Co-authored-by: Lauris BH <lauris@nix.lv >
2024-03-04 08:16:03 +00:00