From 62d4f6f3fabe69b0e08195e99eedd72442bffa68 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 13 Sep 2018 15:45:52 +0300 Subject: hide banned from search --- juick-common/src/main/java/com/juick/service/MessagesService.java | 4 ++-- juick-common/src/main/java/com/juick/service/SearchService.java | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'juick-common') diff --git a/juick-common/src/main/java/com/juick/service/MessagesService.java b/juick-common/src/main/java/com/juick/service/MessagesService.java index 202e967e..77ded81e 100644 --- a/juick-common/src/main/java/com/juick/service/MessagesService.java +++ b/juick-common/src/main/java/com/juick/service/MessagesService.java @@ -86,7 +86,7 @@ public interface MessagesService { List getPhotos(int visitorUid, int before); - List getSearch(String search, int page); + List getSearch(User visitor, String search, int page); List getUserBlog(int uid, int privacy, int before); @@ -100,7 +100,7 @@ public interface MessagesService { List getUserPhotos(int uid, int privacy, int before); - List getUserSearch(int UID, String search, int privacy, int page); + List getUserSearch(User visitor, int UID, String search, int privacy, int page); List getMessages(User visitor, List mids); diff --git a/juick-common/src/main/java/com/juick/service/SearchService.java b/juick-common/src/main/java/com/juick/service/SearchService.java index cd57eb5b..0dae5cfc 100644 --- a/juick-common/src/main/java/com/juick/service/SearchService.java +++ b/juick-common/src/main/java/com/juick/service/SearchService.java @@ -17,6 +17,8 @@ package com.juick.service; +import com.juick.User; + import java.util.List; /** @@ -25,7 +27,7 @@ import java.util.List; public interface SearchService { void setMaxResult(int maxResult); - List searchInAllMessages(String searchString, int messageIdBefore); + List searchInAllMessages(User visitor, String searchString, int messageIdBefore); - List searchByStringAndUser(String searchString, final int userId, int messageIdBefore); + List searchByStringAndUser(User visitor, String searchString, final int userId, int messageIdBefore); } -- cgit v1.2.3