mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Backport #34423 by wxiaoguang Fix #34418, fix #34353 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -1198,7 +1198,8 @@ func GetUsersByEmails(ctx context.Context, emails []string) (map[string]*User, e | ||||
| 		for _, email := range emailAddresses { | ||||
| 			user := users[email.UID] | ||||
| 			if user != nil { | ||||
| 				results[user.GetEmail()] = user | ||||
| 				results[user.Email] = user | ||||
| 				results[user.GetPlaceholderEmail()] = user | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| @@ -1208,6 +1209,7 @@ func GetUsersByEmails(ctx context.Context, emails []string) (map[string]*User, e | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	for _, user := range users { | ||||
| 		results[user.Email] = user | ||||
| 		results[user.GetPlaceholderEmail()] = user | ||||
| 	} | ||||
| 	return results, nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user