diff options
author | John Olheiser <john.olheiser@gmail.com> | 2023-01-10 13:37:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 13:37:15 -0600 |
commit | ded9a218f7c278abc0a8315b518460411261c519 (patch) | |
tree | 53b68ac6faa643609ac990371b9eab0496899dfa | |
parent | 03f06d5ac1813125b1f080471bfe002a08db061f (diff) | |
download | gitea-release/v1.17.tar.gz gitea-release/v1.17.zip |
fix: omit avatar_url in discord payload when empty (#22393) (#22395)release/v1.17
Backport #22393
Signed-off-by: jolheiser <john.olheiser@gmail.com>
-rw-r--r-- | services/webhook/discord.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/webhook/discord.go b/services/webhook/discord.go index f65a8648c4..82c5ce1054 100644 --- a/services/webhook/discord.go +++ b/services/webhook/discord.go @@ -54,7 +54,7 @@ type ( Wait bool `json:"wait"` Content string `json:"content"` Username string `json:"username"` - AvatarURL string `json:"avatar_url"` + AvatarURL string `json:"avatar_url,omitempty"` TTS bool `json:"tts"` Embeds []DiscordEmbed `json:"embeds"` } |