aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2024-02-08 04:09:15 +0100
committerGitHub <noreply@github.com>2024-02-08 03:09:15 +0000
commit37191dcfbdbd007266a4d15a3c85cdf94cec1a7a (patch)
tree6908f8a6e4b44697f9ec8bf966ff087e620e3ba5 /services
parentf290c24d286b996ac6b512f49a30aa5aef1a2dbe (diff)
downloadgitea-37191dcfbdbd007266a4d15a3c85cdf94cec1a7a.tar.gz
gitea-37191dcfbdbd007266a4d15a3c85cdf94cec1a7a.zip
Fix missing link on outgoing new release notifications (#29079)
Outgoing new release e-mail notifications were missing links to the actual release. An example from Codeberg.org e-mail: <a href=3D"">View it on Codeberg.org</a>.<br/> This PR adds `"Link"` context property pointing to the release on the web interface. The change was tested using `[mailer] PROTOCOL=dummy`. Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Diffstat (limited to 'services')
-rw-r--r--services/mailer/mail_release.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/mailer/mail_release.go b/services/mailer/mail_release.go
index 801c2476c2..5e8e5b6af3 100644
--- a/services/mailer/mail_release.go
+++ b/services/mailer/mail_release.go
@@ -74,6 +74,7 @@ func mailNewRelease(ctx context.Context, lang string, tos []string, rel *repo_mo
"Release": rel,
"Subject": subject,
"Language": locale.Language(),
+ "Link": rel.HTMLURL(),
}
var mailBody bytes.Buffer