Skip to content

Commit

Permalink
Fix compare page bug view as anonymous (go-gitea#32754)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Dec 8, 2024
1 parent cd7bf77 commit 9d08d3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routers/web/repo/issue_page_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ func (d *IssuePageMetaData) retrieveReviewersData(ctx *context.Context) {
var reviews issues_model.ReviewList

if d.Issue == nil {
posterID = ctx.Doer.ID
if ctx.Doer != nil {
posterID = ctx.Doer.ID
}
} else {
posterID = d.Issue.PosterID
if d.Issue.OriginalAuthorID > 0 {
Expand Down

0 comments on commit 9d08d3f

Please sign in to comment.