reducing tag suggestions to distinct values

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-11-09 22:38:09 +01:00
parent ef70f842a1
commit b1c1b90302
@@ -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