Merge branch 'main' into pylint-update

This commit is contained in:
Mouse Reeve
2021-09-20 16:31:27 -07:00
35 changed files with 900 additions and 522 deletions

View File

@ -77,7 +77,7 @@ def privacy_filter(viewer, queryset, privacy_levels=None, following_only=False):
elif "followers" in privacy_levels:
queryset = queryset.exclude(
~Q( # user isn't following and it isn't their own status
Q(user__in=viewer.following.all()) | Q(user=viewer)
Q(user__followers=viewer) | Q(user=viewer)
),
privacy="followers", # and the status is followers only
)