aboutsummaryrefslogtreecommitdiffstats
path: root/modules/util/sanitize.go
diff options
context:
space:
mode:
authorMopcho <47301161+Mopcho@users.noreply.github.com>2025-04-04 21:09:40 +0300
committerGitHub <noreply@github.com>2025-04-04 18:09:40 +0000
commit013b2686fe6d306c4fb800147207b099866683b9 (patch)
treefb0e54a667e40b2577e1046d0e92887928b9f53d /modules/util/sanitize.go
parent6cee3bfa9611a691584824ea23a75cc1ebcbb46b (diff)
downloadgitea-main.tar.gz
gitea-main.zip
Fix discord webhook 400 status code when description limit is exceeded (#34084)HEADmain
Fixes [#34027](https://github.com/go-gitea/gitea/issues/34027) Discord does not allow for description bigger than 2048 bytes. If the description is bigger than that it will throw 400 and the event won't appear in discord. To fix that, in the createPayload method we now slice the description to ensure it doesn’t exceed the limit. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/util/sanitize.go')
0 files changed, 0 insertions, 0 deletions