1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 13:39:19 -05:00
forgejo/services/webhook
John Olheiser e7f1d45eb5
fix: omit avatar_url in discord payload when empty (#22393)
Fixes #22391

This field is optional for Discord, however when it exists in the
payload it is now validated.
Omitting it entirely just makes Discord use the default for that
webhook, which is set on the Discord side.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-01-10 14:01:52 -05:00
..
deliver.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
deliver_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
dingtalk.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
dingtalk_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
discord.go fix: omit avatar_url in discord payload when empty (#22393) 2023-01-10 14:01:52 -05:00
discord_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
feishu.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
feishu_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
general.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
general_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
matrix.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
matrix_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
msteams.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
msteams_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
notifier.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
packagist.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
packagist_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
payloader.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
slack.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
slack_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
telegram.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
telegram_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
webhook.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
webhook_test.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00
wechatwork.go Restructure webhook module (#22256) 2023-01-01 23:23:15 +08:00