diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2020-01-04 16:20:15 -0600 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2020-01-04 22:20:15 +0000 |
commit | fb3a6aba7de2a22e102636c010b7c1faf740f1d7 (patch) | |
tree | 86a798b39eba88bd7d9c42cea302ab9193400e6d /modules/webhook/dingtalk.go | |
parent | 07439d8059f80972aaf6b49dd3f3ff699d775b01 (diff) | |
download | gitea-fb3a6aba7de2a22e102636c010b7c1faf740f1d7.tar.gz gitea-fb3a6aba7de2a22e102636c010b7c1faf740f1d7.zip |
Only show sender if it makes sense (#9601)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'modules/webhook/dingtalk.go')
-rw-r--r-- | modules/webhook/dingtalk.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/webhook/dingtalk.go b/modules/webhook/dingtalk.go index 4869c1a37c..0d569f4120 100644 --- a/modules/webhook/dingtalk.go +++ b/modules/webhook/dingtalk.go @@ -132,7 +132,7 @@ func getDingtalkPushPayload(p *api.PushPayload) (*DingtalkPayload, error) { } func getDingtalkIssuesPayload(p *api.IssuePayload) (*DingtalkPayload, error) { - text, issueTitle, attachmentText, _ := getIssuesPayloadInfo(p, noneLinkFormatter) + text, issueTitle, attachmentText, _ := getIssuesPayloadInfo(p, noneLinkFormatter, true) return &DingtalkPayload{ MsgType: "actionCard", @@ -148,7 +148,7 @@ func getDingtalkIssuesPayload(p *api.IssuePayload) (*DingtalkPayload, error) { } func getDingtalkIssueCommentPayload(p *api.IssueCommentPayload) (*DingtalkPayload, error) { - text, issueTitle, _ := getIssueCommentPayloadInfo(p, noneLinkFormatter) + text, issueTitle, _ := getIssueCommentPayloadInfo(p, noneLinkFormatter, true) return &DingtalkPayload{ MsgType: "actionCard", @@ -163,7 +163,7 @@ func getDingtalkIssueCommentPayload(p *api.IssueCommentPayload) (*DingtalkPayloa } func getDingtalkPullRequestPayload(p *api.PullRequestPayload) (*DingtalkPayload, error) { - text, issueTitle, attachmentText, _ := getPullRequestPayloadInfo(p, noneLinkFormatter) + text, issueTitle, attachmentText, _ := getPullRequestPayloadInfo(p, noneLinkFormatter, true) return &DingtalkPayload{ MsgType: "actionCard", @@ -236,7 +236,7 @@ func getDingtalkRepositoryPayload(p *api.RepositoryPayload) (*DingtalkPayload, e } func getDingtalkReleasePayload(p *api.ReleasePayload) (*DingtalkPayload, error) { - text, _ := getReleasePayloadInfo(p, noneLinkFormatter) + text, _ := getReleasePayloadInfo(p, noneLinkFormatter, true) return &DingtalkPayload{ MsgType: "actionCard", |