Commit 3c7e7a1
fix(webhook/discord): fixed username cannot be empty error (go-gitea#35412) (go-gitea#35417)
Backport go-gitea#35412 by @ulnanlu
username field is not required by discord and used to override the
default username. sending it as blank causes a 400 error. it should be
omitted instead when it's not set.
Ref:
https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params
Closes go-gitea#35411
Co-authored-by: ulnanlu <220980518+ulnanlu@users.noreply.github.com>1 parent 8313b5d commit 3c7e7a1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments