diff --git a/bookwyrm/templates/snippets/add_to_group_button.html b/bookwyrm/templates/snippets/add_to_group_button.html index cc394684..fe1403c4 100644 --- a/bookwyrm/templates/snippets/add_to_group_button.html +++ b/bookwyrm/templates/snippets/add_to_group_button.html @@ -1,6 +1,5 @@ {% load i18n %} {% if request.user == user or not request.user == group.user or not request.user.is_authenticated %} - {% elif user in request.user.blocks.all %} {% include 'snippets/block_button.html' with blocks=True %} {% else %} @@ -11,6 +10,7 @@ {% csrf_token %} + {% if user.local %} + {% else %} + + Remote User + {% endif %}
{% csrf_token %} diff --git a/bookwyrm/views/group.py b/bookwyrm/views/group.py index b28aabeb..4d91be67 100644 --- a/bookwyrm/views/group.py +++ b/bookwyrm/views/group.py @@ -84,7 +84,7 @@ class UserGroups(View): @method_decorator(login_required, name="dispatch") class FindUsers(View): """find friends to add to your group""" - """this is mostly taken from the Get Started friend finder""" + """this is mostly borrowed from the Get Started friend finder""" def get(self, request, group_id): """basic profile info""" @@ -99,6 +99,7 @@ class FindUsers(View): ) .filter( similarity__gt=0.5, + local=True ) .order_by("-similarity")[:5] )