aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2021-03-12 21:01:33 +0000
committerGitHub <noreply@github.com>2021-03-12 21:01:33 +0000
commit3c7582061f0b2165d8a64445d80c35a92cdef8c6 (patch)
tree33289208a8d765cde5d863baf500ebc2e25b52d2 /templates
parentff1bccf3ddf0662f58f9e1a532b8b082ae04af23 (diff)
downloadgitea-3c7582061f0b2165d8a64445d80c35a92cdef8c6.tar.gz
gitea-3c7582061f0b2165d8a64445d80c35a92cdef8c6.zip
check if original author is set (#14971)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index b8d78f5697..0aaa806450 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -44,7 +44,7 @@
</div>
<div class="comment-header-right actions df ac">
{{if not $.Repository.IsArchived}}
- {{if or (and (eq .PosterID .Issue.PosterID) (eq .Issue.OriginalAuthorID 0)) (eq .Issue.OriginalAuthorID .OriginalAuthorID) }}
+ {{if or (and (eq .PosterID .Issue.PosterID) (eq .Issue.OriginalAuthorID 0)) (and (eq .Issue.OriginalAuthorID .OriginalAuthorID) (not (eq .OriginalAuthorID 0))) }}
<div class="ui basic label">
{{$.i18n.Tr "repo.issues.poster"}}
</div>