diff options
author | Giteabot <teabot@gitea.io> | 2025-04-05 10:08:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 02:08:04 +0000 |
commit | 66ccae8b906f1ed107023120508f2bba46e0c133 (patch) | |
tree | 8acaef6b4edccb675193d68cc30427d833eb8285 /docker/root | |
parent | 0e6489317ebb8c2a01229f785e12ed440141eaa5 (diff) | |
download | gitea-release/v1.23.tar.gz gitea-release/v1.23.zip |
Fix discord webhook 400 status code when description limit is exceeded (#34084) (#34124)release/v1.23
Backport #34084 by @Mopcho
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: Mopcho <47301161+Mopcho@users.noreply.github.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'docker/root')
0 files changed, 0 insertions, 0 deletions