aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-13 15:45:52 +0300
committerGravatar Vitaly Takmazov2018-09-13 15:45:52 +0300
commit62d4f6f3fabe69b0e08195e99eedd72442bffa68 (patch)
tree65d54c9d2ffe5620d27224825fb4050abe2ea912 /juick-server/src/main/java/com/juick/server/api
parentd6bd717e553be5d339cf05bca099539844ba68a5 (diff)
hide banned from search
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/Messages.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/Messages.java b/juick-server/src/main/java/com/juick/server/api/Messages.java
index 672f328f..e900810f 100644
--- a/juick-server/src/main/java/com/juick/server/api/Messages.java
+++ b/juick-server/src/main/java/com/juick/server/api/Messages.java
@@ -115,7 +115,7 @@ public class Messages {
} else if (daysback > 0) {
mids = messagesService.getUserBlogAtDay(user.getUid(), 0, daysback);
} else if (!StringUtils.isEmpty(search)) {
- mids = messagesService.getUserSearch(user.getUid(), Utils.encodeSphinx(search), 0, page);
+ mids = messagesService.getUserSearch(visitor, user.getUid(), Utils.encodeSphinx(search), 0, page);
} else {
mids = messagesService.getUserBlog(user.getUid(), 0, before);
}
@@ -135,7 +135,7 @@ public class Messages {
return NOT_FOUND;
}
} else if (!StringUtils.isEmpty(search)) {
- mids = messagesService.getSearch(Utils.encodeSphinx(search), page);
+ mids = messagesService.getSearch(visitor, Utils.encodeSphinx(search), page);
} else {
mids = messagesService.getAll(visitor.getUid(), before);
}