diff --git a/bookwyrm/activitystreams.py b/bookwyrm/activitystreams.py index 3ece0503..dc5323f6 100644 --- a/bookwyrm/activitystreams.py +++ b/bookwyrm/activitystreams.py @@ -67,7 +67,7 @@ class ActivityStream(ABC): def stream_users(self, status): # pylint: disable=no-self-use """ given a status, what users should see it """ # direct messages don't appeard in feeds, direct comments/reviews/etc do - if status.privacy == "direct" and status.status_type == 'Note': + if status.privacy == "direct" and status.status_type == "Note": return None # everybody who could plausibly see this status diff --git a/bookwyrm/views/feed.py b/bookwyrm/views/feed.py index f2f3c2bd..e0de932d 100644 --- a/bookwyrm/views/feed.py +++ b/bookwyrm/views/feed.py @@ -75,9 +75,7 @@ class DirectMessage(View): if user: queryset = queryset.filter(Q(user=user) | Q(mention_users=user)) - activities = privacy_filter( - request.user, queryset, privacy_levels=["direct"] - ) + activities = privacy_filter(request.user, queryset, privacy_levels=["direct"]) paginated = Paginator(activities, PAGE_LENGTH) activity_page = paginated.page(page)