Bookwyrm user was already set

This commit is contained in:
Mouse Reeve 2021-08-06 09:14:07 -07:00
parent d126d7ba91
commit 9030f0d08b

View file

@ -103,9 +103,7 @@ class SuggestedUsers(RedisStore):
def get_annotated_users(viewer, *args, **kwargs):
"""Users, annotated with things they have in common"""
return (
models.User.objects.filter(
discoverable=True, is_active=True, bookwyrm_user=True, *args, **kwargs
)
models.User.objects.filter(discoverable=True, is_active=True, *args, **kwargs)
.exclude(Q(id__in=viewer.blocks.all()) | Q(blocks=viewer))
.annotate(
mutuals=Count(