1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-04 20:06:08 +02:00

fix: omit avatar_url in discord payload when empty (#22393) (#22395)

Backport #22393

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2023-01-10 13:37:15 -06:00 committed by GitHub
parent 03f06d5ac1
commit ded9a218f7
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"`
}