mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
always lowercase name when searching
This commit is contained in:
parent
5d5b0b70c1
commit
53319d8c90
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ def add_remote():
|
||||||
form = SearchRemoteCommunity()
|
form = SearchRemoteCommunity()
|
||||||
new_community = None
|
new_community = None
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
address = form.address.data.strip()
|
address = form.address.data.strip().lower()
|
||||||
if address.startswith('!') and '@' in address:
|
if address.startswith('!') and '@' in address:
|
||||||
new_community = search_for_community(address)
|
new_community = search_for_community(address)
|
||||||
elif address.startswith('@') and '@' in address[1:]:
|
elif address.startswith('@') and '@' in address[1:]:
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
{% for link in inoculation['links'] %}
|
{% for link in inoculation['links'] %}
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
<a href="{{ link['href'] }}">{{ link['title'] }}</a>
|
<a href="{{ link['href'] }}" target="_blank">{{ link['title'] }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Add table
Reference in a new issue