mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix wrong identify poster on a migrated pull request when submi… (#9827)
This commit is contained in:
		
				
					committed by
					
						
						Antoine GIRARD
					
				
			
			
				
	
			
			
			
						parent
						
							3c07d03c03
						
					
				
				
					commit
					088759f180
				
			@@ -440,7 +440,7 @@ func (issue *Issue) HashTag() string {
 | 
			
		||||
 | 
			
		||||
// IsPoster returns true if given user by ID is the poster.
 | 
			
		||||
func (issue *Issue) IsPoster(uid int64) bool {
 | 
			
		||||
	return issue.PosterID == uid
 | 
			
		||||
	return issue.OriginalAuthorID == 0 && issue.PosterID == uid
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (issue *Issue) hasLabel(e Engine, labelID int64) bool {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user