mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26: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()
|
||||
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:]:
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue