diff options
author | Mopcho <47301161+Mopcho@users.noreply.github.com> | 2025-04-04 21:09:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-04 18:09:40 +0000 |
commit | 013b2686fe6d306c4fb800147207b099866683b9 (patch) | |
tree | fb0e54a667e40b2577e1046d0e92887928b9f53d /modules/web/wrap.go | |
parent | 6cee3bfa9611a691584824ea23a75cc1ebcbb46b (diff) | |
download | gitea-main.tar.gz gitea-main.zip |
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/web/wrap.go')
0 files changed, 0 insertions, 0 deletions