diff --git a/bookwyrm/outgoing.py b/bookwyrm/outgoing.py index d12a0430..3605e3f5 100644 --- a/bookwyrm/outgoing.py +++ b/bookwyrm/outgoing.py @@ -48,7 +48,7 @@ def handle_account_search(query): except requests.exceptions.ConnectionError: return None if not response.ok: - response.raise_for_status() + return None data = response.json() for link in data['links']: if link['rel'] == 'self': diff --git a/bookwyrm/templates/user_results.html b/bookwyrm/templates/user_results.html index 94f8a82e..9ea169e2 100644 --- a/bookwyrm/templates/user_results.html +++ b/bookwyrm/templates/user_results.html @@ -1,12 +1,14 @@ {% extends 'layout.html' %} {% block content %} -
+
+

User search results

{% if not results %}

No results found for "{{ query }}"

{% endif %} {% for result in results %} -
-

{{ result.username }}

+
+ {% include 'snippets/avatar.html' with user=result %} + {% include 'snippets/username.html' with user=result show_full=True %} {% include 'snippets/follow_button.html' with user=result %}
{% endfor %}