fix imports

This commit is contained in:
Lunny Xiao 2017-10-25 13:49:06 +08:00
parent eba5945d2f
commit cb0c8b8ae4
No known key found for this signature in database
GPG key ID: C3B7C91B632F738A

View file

@ -7,13 +7,12 @@ package user
import ( import (
"strings" "strings"
"github.com/Unknwon/com"
"github.com/gogits/gogs/pkg/markup"
api "code.gitea.io/sdk/gitea"
"code.gitea.io/gitea/models" "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/markdown"
api "code.gitea.io/sdk/gitea"
"github.com/Unknwon/com"
) )
// Search search users // Search search users
@ -51,7 +50,7 @@ func Search(ctx *context.APIContext) {
ID: users[i].ID, ID: users[i].ID,
UserName: users[i].Name, UserName: users[i].Name,
AvatarURL: users[i].AvatarLink(), AvatarURL: users[i].AvatarLink(),
FullName: markup.Sanitize(users[i].FullName), FullName: markdown.Sanitize(users[i].FullName),
} }
if ctx.IsSigned { if ctx.IsSigned {
results[i].Email = users[i].Email results[i].Email = users[i].Email