aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorwin2021-03-13 03:05:56 +0000
committerGitHub2021-03-13 11:05:56 +0800
commit3231b70043039d1acd722115acf0e3022a81ca85 (patch)
treed6676a4ff9dc02753cdc76cd2a38dae37c0573cd
parente3c44923d76ef2e4e6b92ec8700ed42663776e0c (diff)
check if original author is set (#14972)
Co-authored-by: 6543 <6543@obermui.de>
-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 2e4a6681c..db2e4f810 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -29,7 +29,7 @@
</div>
<div class="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="item tag">
{{$.i18n.Tr "repo.issues.poster"}}
</div>