forked from mirrors/bookwyrm
Bookwyrm user was already set
This commit is contained in:
parent
d126d7ba91
commit
9030f0d08b
1 changed files with 1 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue