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 cfe3d6e commit ed81b60Copy full SHA for ed81b60
routers/web/user/search.go
@@ -24,6 +24,7 @@ func Search(ctx *context.Context) {
24
Keyword: ctx.FormTrim("q"),
25
UID: ctx.FormInt64("uid"),
26
Type: user_model.UserTypeIndividual,
27
+ IsActive: ctx.FormOptionalBool("active"),
28
ListOptions: listOptions,
29
})
30
if err != nil {
web_src/js/features/comp/SearchUserBox.js
@@ -11,7 +11,7 @@ export function initCompSearchUserBox() {
11
$searchUserBox.search({
12
minCharacters: 2,
13
apiSettings: {
14
- url: `${appSubUrl}/user/search?q={query}`,
+ url: `${appSubUrl}/user/search?active=1&q={query}`,
15
onResponse(response) {
16
const items = [];
17
const searchQuery = $searchUserBox.find('input').val();
0 commit comments