Update image URL for Discord webhook (#19536)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tokarchuk/v1.17
John Olheiser 3 years ago committed by GitHub
parent 960b813a33
commit 3e8aa42a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      routers/web/repo/webhook.go
  2. 2
      templates/repo/settings/webhook/discord.tmpl

@ -147,7 +147,6 @@ func WebhooksNew(ctx *context.Context) {
if hookType == "discord" { if hookType == "discord" {
ctx.Data["DiscordHook"] = map[string]interface{}{ ctx.Data["DiscordHook"] = map[string]interface{}{
"Username": "Gitea", "Username": "Gitea",
"IconURL": setting.AppURL + "img/favicon.png",
} }
} }
ctx.Data["BaseLink"] = orCtx.LinkNew ctx.Data["BaseLink"] = orCtx.LinkNew

@ -12,7 +12,7 @@
</div> </div>
<div class="field"> <div class="field">
<label for="icon_url">{{.i18n.Tr "repo.settings.discord_icon_url"}}</label> <label for="icon_url">{{.i18n.Tr "repo.settings.discord_icon_url"}}</label>
<input id="icon_url" name="icon_url" value="{{.DiscordHook.IconURL}}" placeholder="e.g. https://example.com/img/favicon.png"> <input id="icon_url" name="icon_url" value="{{.DiscordHook.IconURL}}" placeholder="e.g. https://example.com/assets/img/logo.svg">
</div> </div>
{{template "repo/settings/webhook/settings" .}} {{template "repo/settings/webhook/settings" .}}
</form> </form>

Loading…
Cancel
Save