always lowercase name when searching

This commit is contained in:
rimu 2024-01-19 17:29:50 +13:00
parent 5d5b0b70c1
commit 53319d8c90
2 changed files with 2 additions and 2 deletions

View file

@ -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:]:

View file

@ -10,7 +10,7 @@
<ul class="list-group list-group-flush">
{% for link in inoculation['links'] %}
<li class="list-group-item">
<a href="{{ link['href'] }}">{{ link['title'] }}</a>
<a href="{{ link['href'] }}" target="_blank">{{ link['title'] }}</a>
</li>
{% endfor %}
</ul>