Mopcho 013b2686fe
Fix discord webhook 400 status code when description limit is exceeded (#34084)
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>
2025-04-04 18:09:40 +00:00
..
2025-04-01 10:14:01 +00:00
2025-04-01 10:14:01 +00:00
2025-03-11 10:40:38 -07:00
2025-04-01 10:14:01 +00:00
2025-03-11 10:40:38 -07:00
2025-04-01 10:14:01 +00:00
2025-03-11 10:40:38 -07:00
2025-03-11 10:40:38 -07:00
2025-03-11 10:40:38 -07:00
2025-03-11 10:40:38 -07:00
2024-12-30 01:25:49 +08:00