aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-12-02 07:50:05 -0500
committer无闻 <joe2010xtmf@163.com>2014-12-02 07:50:05 -0500
commitb9999427a8704d2960f3e42f611f9ebdbf6e614a (patch)
treeaca9f4f93afc87665e3207a27a1801b8c540652a
parentddeb0768905ecebe36bc26b7fb9fe40b885f4b26 (diff)
parent48bb0fadc2ddc362fe2da272767aba614f691645 (diff)
Merge pull request #694 from deiwin/update/user-api-to-include-full-name
update user api search results to include the full name
-rw-r--r--routers/api/v1/user.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/user.go b/routers/api/v1/user.go
index 2b41adae..15c423f7 100644
--- a/routers/api/v1/user.go
+++ b/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,
}
}