We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba5945 commit cb0c8b8Copy full SHA for cb0c8b8
routers/api/v1/user/user.go
@@ -7,13 +7,12 @@ package user
7
import (
8
"strings"
9
10
- "github.com/Unknwon/com"
11
- "github.com/gogits/gogs/pkg/markup"
12
-
13
- api "code.gitea.io/sdk/gitea"
14
15
"code.gitea.io/gitea/models"
16
"code.gitea.io/gitea/modules/context"
+ "code.gitea.io/gitea/modules/markdown"
+ api "code.gitea.io/sdk/gitea"
+
+ "github.com/Unknwon/com"
17
)
18
19
// Search search users
@@ -51,7 +50,7 @@ func Search(ctx *context.APIContext) {
51
50
ID: users[i].ID,
52
UserName: users[i].Name,
53
AvatarURL: users[i].AvatarLink(),
54
- FullName: markup.Sanitize(users[i].FullName),
+ FullName: markdown.Sanitize(users[i].FullName),
55
}
56
if ctx.IsSigned {
57
results[i].Email = users[i].Email
0 commit comments