Skip to content

Commit 796be03

Browse files
authored
fix discord hook bug (#2778)
1 parent b0f04e7 commit 796be03

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

models/webhook_discord.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2017 The Gitea Authors. All rights reserved.
2+
// Use of this source code is governed by a MIT-style
3+
// license that can be found in the LICENSE file.
4+
15
package models
26

37
import (

templates/org/settings/hook_new.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<img class="img-13" src="{{AppSubUrl}}/img/gogs.ico">
1616
{{else if eq .HookType "slack"}}
1717
<img class="img-13" src="{{AppSubUrl}}/img/slack.png">
18+
{{else if eq .HookType "discord"}}
19+
<img class="img-13" src="{{AppSubUrl}}/img/discord.png">
1820
{{end}}
1921
</div>
2022
</h4>

0 commit comments

Comments
 (0)