0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-21 12:24:38 +02:00
This commit is contained in:
NorthRealm 2025-07-07 17:41:26 +08:00
parent 0081ef87fb
commit ed7b2bc242

View File

@ -7,6 +7,7 @@ import (
"bytes"
"context"
"fmt"
"maps"
"strconv"
"strings"
"time"
@ -308,12 +309,8 @@ func generateAdditionalHeadersForIssue(ctx *mailComment, reason string, recipien
issueID := strconv.FormatInt(ctx.Issue.Index, 10)
headers := generateMetadataHeaders(repo)
for k, v := range generateSenderRecipientHeaders(ctx.Doer, recipient) {
headers[k] = v
}
for k, v := range generateReasonHeaders(reason) {
headers[k] = v
}
maps.Copy(headers, generateSenderRecipientHeaders(ctx.Doer, recipient))
maps.Copy(headers, generateReasonHeaders(reason))
headers["X-Gitea-Recipient-Address"] = recipient.Email
headers["X-Gitea-Issue-ID"] = issueID