mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-15 14:32:42 +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
|
@ -7,6 +7,7 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
|
@ -26,6 +27,7 @@ import (
|
|||
type discordHandler struct{}
|
||||
|
||||
func (discordHandler) Type() webhook_module.HookType { return webhook_module.DISCORD }
|
||||
func (discordHandler) Icon(size int) template.HTML { return imgIcon("discord.png", size) }
|
||||
|
||||
func (discordHandler) FormFields(bind func(any)) FormFields {
|
||||
var form struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue