diff options
author | Joe Chen <jc@unknwon.io> | 2022-10-22 20:01:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 20:01:38 +0800 |
commit | ce25881c880d9711f211be05f92a809304a436e3 (patch) | |
tree | 9239c155c8276761de6639fd19b0a56e87eedde5 /internal/route/api/v1/user | |
parent | 7cbd84d5b3d4af36e4afcf7af9374bc765f6bb9c (diff) |
refactor(db): move some methods off `user.go` (#7199)
Diffstat (limited to 'internal/route/api/v1/user')
-rw-r--r-- | internal/route/api/v1/user/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/api/v1/user/user.go b/internal/route/api/v1/user/user.go index 2b26a282..5852f660 100644 --- a/internal/route/api/v1/user/user.go +++ b/internal/route/api/v1/user/user.go @@ -40,7 +40,7 @@ func Search(c *context.APIContext) { results[i] = &api.User{ ID: users[i].ID, UserName: users[i].Name, - AvatarUrl: users[i].AvatarLink(), + AvatarUrl: users[i].AvatarURL(), FullName: markup.Sanitize(users[i].FullName), } if c.IsLogged { |