mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 13:28:25 +00:00 
			
		
		
		
	Fix compare page bug view as anonymous (#32754)
Fix a bug introduced from https://github.com/go-gitea/gitea/pull/32403/files#diff-dc86301f15109eee38296d469630672193e0587ad1485fdd8f503bf4c789cf7eR692
This commit is contained in:
		@@ -195,7 +195,9 @@ func (d *IssuePageMetaData) retrieveReviewersData(ctx *context.Context) {
 | 
				
			|||||||
	var reviews issues_model.ReviewList
 | 
						var reviews issues_model.ReviewList
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if d.Issue == nil {
 | 
						if d.Issue == nil {
 | 
				
			||||||
		posterID = ctx.Doer.ID
 | 
							if ctx.Doer != nil {
 | 
				
			||||||
 | 
								posterID = ctx.Doer.ID
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		posterID = d.Issue.PosterID
 | 
							posterID = d.Issue.PosterID
 | 
				
			||||||
		if d.Issue.OriginalAuthorID > 0 {
 | 
							if d.Issue.OriginalAuthorID > 0 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user