Skip to content

Commit 44ef09e

Browse files
committed
Fix nil pointer in default issue mail template
Fix: template: issue/default:20:17: executing "issue/default" at <.Comment.Type>: nil pointer evaluating interface {}.Type Introduced in go-gitea#11167
1 parent 2b2b3e4 commit 44ef09e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/mail/issue/default.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<body>
1919
{{if .IsMention}}<p><b>@{{.Doer.Name}}</b> mentioned you:</p>{{end}}
20-
{{if eq .Comment.Type 29}}
20+
{{if eq .ActionName "push"}}
2121
<p>
2222
<b>{{.Doer.Name}}</b>
2323
{{if .Comment.IsForcePush}}

0 commit comments

Comments
 (0)