Skip to content

Commit 3e8aa42

Browse files
authored
Update image URL for Discord webhook (#19536)
Signed-off-by: jolheiser <[email protected]>
1 parent 960b813 commit 3e8aa42

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

routers/web/repo/webhook.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ func WebhooksNew(ctx *context.Context) {
147147
if hookType == "discord" {
148148
ctx.Data["DiscordHook"] = map[string]interface{}{
149149
"Username": "Gitea",
150-
"IconURL": setting.AppURL + "img/favicon.png",
151150
}
152151
}
153152
ctx.Data["BaseLink"] = orCtx.LinkNew

templates/repo/settings/webhook/discord.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<div class="field">
1414
<label for="icon_url">{{.i18n.Tr "repo.settings.discord_icon_url"}}</label>
15-
<input id="icon_url" name="icon_url" value="{{.DiscordHook.IconURL}}" placeholder="e.g. https://example.com/img/favicon.png">
15+
<input id="icon_url" name="icon_url" value="{{.DiscordHook.IconURL}}" placeholder="e.g. https://example.com/assets/img/logo.svg">
1616
</div>
1717
{{template "repo/settings/webhook/settings" .}}
1818
</form>

0 commit comments

Comments
 (0)