aboutsummaryrefslogtreecommitdiffstats
path: root/services/mailer/mail.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-01-16 21:58:01 +0100
committerGitHub <noreply@github.com>2023-01-16 14:58:01 -0600
commit8117e41dfa1dd162aa98206f46996fa1973e5632 (patch)
tree1e6f901373dab69e56019ce193de669b2b68deb8 /services/mailer/mail.go
parent2cc3a6381cab34113fd2dc2c24ef0efc22c4336d (diff)
downloadgitea-8117e41dfa1dd162aa98206f46996fa1973e5632.tar.gz
gitea-8117e41dfa1dd162aa98206f46996fa1973e5632.zip
Add reply hint to mail text (#22459)
Addition to #22056 This PR adds a hint to mail text if replies are supported. I can't tell if the text structure is supported in every language. Maybe we need to put the whole line in the translation file and use parameters.
Diffstat (limited to 'services/mailer/mail.go')
-rw-r--r--services/mailer/mail.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/mailer/mail.go b/services/mailer/mail.go
index 6af4ed249c..7c7ad54714 100644
--- a/services/mailer/mail.go
+++ b/services/mailer/mail.go
@@ -274,6 +274,7 @@ func composeIssueCommentMessages(ctx *mailCommentContext, lang string, recipient
"ActionName": actName,
"ReviewComments": reviewComments,
"Language": locale.Language(),
+ "CanReply": setting.IncomingEmail.Enabled && commentType != issues_model.CommentTypePullRequestPush,
// helper
"locale": locale,
"Str2html": templates.Str2html,