summaryrefslogtreecommitdiff
path: root/system/api/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/api/search.go')
-rw-r--r--system/api/search.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/api/search.go b/system/api/search.go
index 9c7f0ae..b77de68 100644
--- a/system/api/search.go
+++ b/system/api/search.go
@@ -26,7 +26,7 @@ func searchContentHandler(res http.ResponseWriter, req *http.Request) {
return
}
- if hide(it(), res, req) {
+ if hide(res, req, it()) {
return
}
@@ -64,7 +64,7 @@ func searchContentHandler(res http.ResponseWriter, req *http.Request) {
// if we have matches, push the first as its matched by relevance
if len(bb) > 0 {
- push(res, req, it, bb[0])
+ push(res, req, it(), bb[0])
}
var result = []json.RawMessage{}
@@ -78,7 +78,7 @@ func searchContentHandler(res http.ResponseWriter, req *http.Request) {
return
}
- j, err = omit(it(), j)
+ j, err = omit(res, req, it(), j)
if err != nil {
res.WriteHeader(http.StatusInternalServerError)
return