diff options
Diffstat (limited to 'services/webhook/matrix.go')
-rw-r--r-- | services/webhook/matrix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/webhook/matrix.go b/services/webhook/matrix.go index 4fd78ff5bb..72392debe9 100644 --- a/services/webhook/matrix.go +++ b/services/webhook/matrix.go @@ -87,7 +87,7 @@ func (m *MatrixPayloadUnsafe) JSONPayload() ([]byte, error) { } // MatrixLinkFormatter creates a link compatible with Matrix -func MatrixLinkFormatter(url string, text string) string { +func MatrixLinkFormatter(url, text string) string { return fmt.Sprintf(`<a href="%s">%s</a>`, html.EscapeString(url), html.EscapeString(text)) } |