reducing tag suggestions to distinct values

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-10-05 14:50:53 +02:00
parent 75814a86eb
commit 66514c60a5
@@ -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