1
Fork 0

[REFACTOR] add Icon to webhook.Interface

This commit is contained in:
oliverpool 2024-03-22 16:02:48 +01:00
parent bc04183e47
commit 120fa61a0a
15 changed files with 54 additions and 2 deletions

View file

@ -6,6 +6,7 @@ package webhook
import (
"context"
"fmt"
"html/template"
"net/http"
"regexp"
"strings"
@ -26,6 +27,7 @@ import (
type slackHandler struct{}
func (slackHandler) Type() webhook_module.HookType { return webhook_module.SLACK }
func (slackHandler) Icon(size int) template.HTML { return imgIcon("slack.png", size) }
type slackForm struct {
forms.WebhookForm