Browse Source

update user api search results to include the full name

Is fully backwards compatible
Fixes #677
Deiwin Sarjas 10 năm trước cách đây
mục cha
commit
48bb0fadc2
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      routers/api/v1/user.go

+ 1 - 0
routers/api/v1/user.go

@@ -37,6 +37,7 @@ func SearchUsers(ctx *middleware.Context) {
 		results[i] = &api.User{
 			UserName:  us[i].Name,
 			AvatarUrl: us[i].AvatarLink(),
+			FullName:  us[i].FullName,
 		}
 	}