summaryrefslogtreecommitdiffstats
path: root/models/webhook_slack.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-28 23:38:09 +0800
committerUnknwon <u@gogs.io>2015-08-28 23:38:09 +0800
commit8e92d4352f2b3557c3916ed82a1b3ba5881980a9 (patch)
tree9dff980a4823d13d08cc22ca5a8292255f032241 /models/webhook_slack.go
parentf509c59ac13dffdff6a246572de04150ee295314 (diff)
downloadgitea-8e92d4352f2b3557c3916ed82a1b3ba5881980a9.tar.gz
gitea-8e92d4352f2b3557c3916ed82a1b3ba5881980a9.zip
slack JSON indent
Diffstat (limited to 'models/webhook_slack.go')
-rw-r--r--models/webhook_slack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/webhook_slack.go b/models/webhook_slack.go
index 9ae125873f..b9a39b64e0 100644
--- a/models/webhook_slack.go
+++ b/models/webhook_slack.go
@@ -42,7 +42,7 @@ type SlackAttachment struct {
func (p *SlackPayload) SetSecret(_ string) {}
func (p *SlackPayload) JSONPayload() ([]byte, error) {
- data, err := json.Marshal(p)
+ data, err := json.MarshalIndent(p, "", " ")
if err != nil {
return []byte{}, err
}