diff options
author | Vitaly Takmazov | 2023-04-26 10:10:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-04-30 11:41:27 +0300 |
commit | cd6150df90a6ab86f20221c61c58c6864dc408fc (patch) | |
tree | 5919da0af4e716445bf5c6c4167af72263152538 /src/main/java/com/juick/service/PostgresSearchService.java | |
parent | c5bd1fed700c1c16c3680587a9556c06d477eb1f (diff) |
Expose 'vip' and 'ignored' user lists over '/me' API endpoint
Diffstat (limited to 'src/main/java/com/juick/service/PostgresSearchService.java')
-rw-r--r-- | src/main/java/com/juick/service/PostgresSearchService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/PostgresSearchService.java b/src/main/java/com/juick/service/PostgresSearchService.java index 79986670..a243b3f3 100644 --- a/src/main/java/com/juick/service/PostgresSearchService.java +++ b/src/main/java/com/juick/service/PostgresSearchService.java @@ -61,7 +61,7 @@ public class PostgresSearchService extends BaseJdbcService implements SearchServ public List<Integer> search(final int visitorId, final int userId, final String searchString, final int page) { - var usersFilter = userService.getUserBLUsers(visitorId).stream().map(User::getUid).toList(); + var usersFilter = userService.getUserIgnoredUsers(visitorId).stream().map(User::getUid).toList(); var offset = page * maxResult; var query = escapeQuery(searchString); var isOneWord = query.split("[^\\S\\+]+").length == 1; |