mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
fix: improve discord webhook api conformance
This commit corrects some cases in the discord webhook payload that do not align with the discord documentation
This commit is contained in:
parent
cf3ebab4ba
commit
6ea6f224b8
5 changed files with 76 additions and 13 deletions
|
@ -5,9 +5,9 @@
|
|||
<label for="payload_url">{{ctx.Locale.Tr "repo.settings.payload_url"}}</label>
|
||||
<input id="payload_url" name="payload_url" type="url" value="{{.Webhook.URL}}" autofocus required>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="required field {{if .Err_PayloadURL}}error{{end}}">
|
||||
<label for="username">{{ctx.Locale.Tr "repo.settings.discord_username"}}</label>
|
||||
<input id="username" name="username" value="{{.HookMetadata.Username}}" placeholder="Forgejo">
|
||||
<input id="username" name="username" value="{{.HookMetadata.Username}}" autofocus required placeholder="Forgejo">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="icon_url">{{ctx.Locale.Tr "repo.settings.discord_icon_url"}}</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue