diff options
Diffstat (limited to 'services/webhook/feishu.go')
-rw-r--r-- | services/webhook/feishu.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/webhook/feishu.go b/services/webhook/feishu.go index 3d789e6c1f..847a991f36 100644 --- a/services/webhook/feishu.go +++ b/services/webhook/feishu.go @@ -5,13 +5,13 @@ package webhook import ( - "encoding/json" "fmt" "strings" "code.gitea.io/gitea/models" "code.gitea.io/gitea/modules/git" api "code.gitea.io/gitea/modules/structs" + jsoniter "github.com/json-iterator/go" ) type ( @@ -40,6 +40,7 @@ func (f *FeishuPayload) SetSecret(_ string) {} // JSONPayload Marshals the FeishuPayload to json func (f *FeishuPayload) JSONPayload() ([]byte, error) { + json := jsoniter.ConfigCompatibleWithStandardLibrary data, err := json.MarshalIndent(f, "", " ") if err != nil { return []byte{}, err |