mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Improve user search display name (#29002)
I tripped over this strange method and I don't think we need that workaround to fix the value. old:  new:  --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -17,14 +17,13 @@ export function initCompSearchUserBox() { | ||||
|         const searchQuery = $searchUserBox.find('input').val(); | ||||
|         const searchQueryUppercase = searchQuery.toUpperCase(); | ||||
|         $.each(response.data, (_i, item) => { | ||||
|           let title = item.login; | ||||
|           if (item.full_name && item.full_name.length > 0) { | ||||
|             title += ` (${htmlEscape(item.full_name)})`; | ||||
|           } | ||||
|           const resultItem = { | ||||
|             title, | ||||
|             title: item.login, | ||||
|             image: item.avatar_url | ||||
|           }; | ||||
|           if (item.full_name) { | ||||
|             resultItem.description = htmlEscape(item.full_name); | ||||
|           } | ||||
|           if (searchQueryUppercase === item.login.toUpperCase()) { | ||||
|             items.unshift(resultItem); | ||||
|           } else { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 KN4CK3R
					KN4CK3R