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/SphinxSearchService.java | |
parent | c5bd1fed700c1c16c3680587a9556c06d477eb1f (diff) |
Expose 'vip' and 'ignored' user lists over '/me' API endpoint
Diffstat (limited to 'src/main/java/com/juick/service/SphinxSearchService.java')
-rw-r--r-- | src/main/java/com/juick/service/SphinxSearchService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/SphinxSearchService.java b/src/main/java/com/juick/service/SphinxSearchService.java index 3775d09f..8a608b44 100644 --- a/src/main/java/com/juick/service/SphinxSearchService.java +++ b/src/main/java/com/juick/service/SphinxSearchService.java @@ -60,7 +60,7 @@ public class SphinxSearchService extends BaseJdbcService implements SearchServic sphinxQuery.put("limit", String.valueOf(maxResult)); sphinxQuery.put("mode", "any"); sphinxQuery.put("sort", sortHint(WebUtils.encodeSphinx(searchString))); - String usersFilter = userService.getUserBLUsers(visitor.getUid()).stream().map(u -> String.valueOf(u.getUid())).collect(Collectors.joining(",")); + String usersFilter = userService.getUserIgnoredUsers(visitor.getUid()).stream().map(u -> String.valueOf(u.getUid())).collect(Collectors.joining(",")); sphinxQuery.put("!filter", "user_id," + usersFilter); if (page > 0) { sphinxQuery.put("offset", String.valueOf(page * maxResult)); |