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
1 changed files with 5 additions and 6 deletions

View File

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