500 visiting following hom
This commit is contained in:
parent
8efac1fe11
commit
ec82a60cf9
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ def q_visible_to(viewer, owner):
|
|||
# elif viewer.is_blocked_by(owner):
|
||||
# return Q(pk__in=[])
|
||||
elif viewer.is_authenticated and viewer.is_following(owner):
|
||||
return Q(visibility__ne=2)
|
||||
return Q(visibility__in=[0, 1])
|
||||
else:
|
||||
return Q(visibility=0)
|
||||
|
||||
|
|
|
@ -468,7 +468,7 @@ def user_collection_list(request, user_name):
|
|||
collections = Collection.objects.filter(owner=user)
|
||||
if user != request.user:
|
||||
if request.user.is_following(user):
|
||||
collections = collections.filter(visibility__ne=2)
|
||||
collections = collections.filter(visibility__in=[0, 1])
|
||||
else:
|
||||
collections = collections.filter(visibility=0)
|
||||
return render(
|
||||
|
|
Loading…
Add table
Reference in a new issue