reducing tag suggestions to distinct values

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-11-10 19:18:17 +01:00
parent ccf6ad325c
commit d3c325b608
@@ -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