]> source.dussan.org Git - gitea.git/commitdiff
check if original author is set (#14971)
authorNorwin <noerw@users.noreply.github.com>
Fri, 12 Mar 2021 21:01:33 +0000 (21:01 +0000)
committerGitHub <noreply@github.com>
Fri, 12 Mar 2021 21:01:33 +0000 (21:01 +0000)
Co-authored-by: zeripath <art27@cantab.net>
templates/repo/issue/view_content/comments.tmpl

index b8d78f56972469861cf5870b4b790135b43cac50..0aaa8064505278ee31089309c0a1e8a101c88135 100644 (file)
@@ -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>