summaryrefslogtreecommitdiffstats
path: root/modules/webhook/webhook.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webhook/webhook.go')
-rw-r--r--modules/webhook/webhook.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/webhook/webhook.go b/modules/webhook/webhook.go
index 75a81d2aff..9748721450 100644
--- a/modules/webhook/webhook.go
+++ b/modules/webhook/webhook.go
@@ -119,6 +119,11 @@ func prepareWebhook(w *models.Webhook, repo *models.Repository, event models.Hoo
if err != nil {
return fmt.Errorf("GetFeishuPayload: %v", err)
}
+ case models.MATRIX:
+ payloader, err = GetMatrixPayload(p, event, w.Meta)
+ if err != nil {
+ return fmt.Errorf("GetMatrixPayload: %v", err)
+ }
default:
p.SetSecret(w.Secret)
payloader = p