diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-01-16 21:58:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 14:58:01 -0600 |
commit | 8117e41dfa1dd162aa98206f46996fa1973e5632 (patch) | |
tree | 1e6f901373dab69e56019ce193de669b2b68deb8 /services/mailer/mail.go | |
parent | 2cc3a6381cab34113fd2dc2c24ef0efc22c4336d (diff) | |
download | gitea-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.go | 1 |
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, |