reducing tag suggestions to distinct values
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -168,7 +168,7 @@ public class TagModule extends BaseHandler implements TagService {
|
||||
private boolean searchTags(HttpExchange ex, String key, UmbrellaUser user) throws IOException {
|
||||
var tags = search(key, user);
|
||||
var lKey = key.toLowerCase();
|
||||
return sendContent(ex, tags.stream().map(entry -> modifyCase(entry, key, lKey)));
|
||||
return sendContent(ex, tags.stream().map(entry -> modifyCase(entry, key, lKey)).distinct());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user