Browse Source

fix discord hook bug (#2778)

Lunny Xiao 1 year ago
parent
commit
796be03e9b
2 changed files with 6 additions and 0 deletions
  1. 4 0
      models/webhook_discord.go
  2. 2 0
      templates/org/settings/hook_new.tmpl

+ 4 - 0
models/webhook_discord.go

@@ -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
+
1 5
 package models
2 6
 
3 7
 import (

+ 2 - 0
templates/org/settings/hook_new.tmpl

@@ -15,6 +15,8 @@
15 15
 							<img class="img-13" src="{{AppSubUrl}}/img/gogs.ico">
16 16
 						{{else if eq .HookType "slack"}}
17 17
 							<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">
18 20
 						{{end}}
19 21
 					</div>
20 22
 				</h4>