aboutsummaryrefslogtreecommitdiff
path: root/models/webhook_slack.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-02-24 12:23:19 -0500
committerUnknwon <u@gogs.io>2017-02-24 12:23:19 -0500
commit6ec859f2b0c1bade67d04f740ec4b9ac9ae0ec98 (patch)
treeee99fa04ae35a085115aa076eb67e192955d8351 /models/webhook_slack.go
parent452551fa23893961ac83dd20b0babef917f42453 (diff)
webhook: send secret with SHA256 HMAC hex digest (#3692)
Diffstat (limited to 'models/webhook_slack.go')
-rw-r--r--models/webhook_slack.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/models/webhook_slack.go b/models/webhook_slack.go
index 213421a5..5943a9e5 100644
--- a/models/webhook_slack.go
+++ b/models/webhook_slack.go
@@ -39,8 +39,6 @@ type SlackPayload struct {
Attachments []*SlackAttachment `json:"attachments"`
}
-func (p *SlackPayload) SetSecret(_ string) {}
-
func (p *SlackPayload) JSONPayload() ([]byte, error) {
data, err := json.MarshalIndent(p, "", " ")
if err != nil {