From 20f13bfdfc5f801e6db319d8d87da0ee139aa32e Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 6 Mar 2021 04:09:49 +0000 Subject: Fix a couple of issues with a feeds (#14897) @CirnoT spotted a couple of issues with feeds on discord. This PR fixes both of these. --- templates/user/dashboard/feeds.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/user/dashboard') diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl index d25920a24e..057a4a7625 100644 --- a/templates/user/dashboard/feeds.tmpl +++ b/templates/user/dashboard/feeds.tmpl @@ -110,7 +110,8 @@ {{index .GetIssueInfos 1 | RenderEmoji}} {{else if or (eq .GetOpType 10) (eq .GetOpType 21) (eq .GetOpType 22) (eq .GetOpType 23)}} {{.GetIssueTitle | RenderEmoji}} -

{{index .GetIssueInfos 1 | RenderEmoji}}

+ {{$comment := index .GetIssueInfos 1}} + {{if gt (len $comment) 0}}

{{$comment | RenderEmoji}}

{{end}} {{else if eq .GetOpType 11}}

{{index .GetIssueInfos 1}}

{{else if or (eq .GetOpType 12) (eq .GetOpType 13) (eq .GetOpType 14) (eq .GetOpType 15)}} -- cgit v1.2.3