mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
parent
4b1012b185
commit
c89da1bd66
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class SuggestedUsers(RedisStore):
|
|||
|
||||
def get_users_for_object(self, obj): # pylint: disable=no-self-use
|
||||
"""given a user, who might want to follow them"""
|
||||
return models.User.objects.filter(local=True,).exclude(
|
||||
return models.User.objects.filter(local=True, is_active=True).exclude(
|
||||
Q(id=obj.id) | Q(followers=obj) | Q(id__in=obj.blocks.all()) | Q(blocks=obj)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue