mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-20 17:00:24 +00:00
[REFACTOR] add Icon to webhook.Interface
This commit is contained in:
parent
bc04183e47
commit
120fa61a0a
15 changed files with 54 additions and 2 deletions
|
@ -6,6 +6,7 @@ package webhook
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
@ -22,6 +23,7 @@ import (
|
|||
type telegramHandler struct{}
|
||||
|
||||
func (telegramHandler) Type() webhook_module.HookType { return webhook_module.TELEGRAM }
|
||||
func (telegramHandler) Icon(size int) template.HTML { return imgIcon("telegram.png", size) }
|
||||
|
||||
func (telegramHandler) FormFields(bind func(any)) FormFields {
|
||||
var form struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue