From 53319d8c90db0c2ac572949239a055592b85e814 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:29:50 +1300 Subject: [PATCH] always lowercase name when searching --- app/community/routes.py | 2 +- app/templates/_inoculation_links.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/community/routes.py b/app/community/routes.py index 069f5279..71d282ab 100644 --- a/app/community/routes.py +++ b/app/community/routes.py @@ -78,7 +78,7 @@ def add_remote(): form = SearchRemoteCommunity() new_community = None if form.validate_on_submit(): - address = form.address.data.strip() + address = form.address.data.strip().lower() if address.startswith('!') and '@' in address: new_community = search_for_community(address) elif address.startswith('@') and '@' in address[1:]: diff --git a/app/templates/_inoculation_links.html b/app/templates/_inoculation_links.html index e300c8ca..9655c1f3 100644 --- a/app/templates/_inoculation_links.html +++ b/app/templates/_inoculation_links.html @@ -10,7 +10,7 @@