From 77264493eb23bbc85d0fc923e37bca43f0ea4e86 Mon Sep 17 00:00:00 2001 From: Wesley Aptekar-Cassels Date: Wed, 5 Apr 2023 23:54:42 -0400 Subject: [PATCH] Override get_audience instead of _get_audience in LocalStream I suspect this will make some future work simpler. --- bookwyrm/activitystreams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/activitystreams.py b/bookwyrm/activitystreams.py index 1a863f48b..3da9abc4e 100644 --- a/bookwyrm/activitystreams.py +++ b/bookwyrm/activitystreams.py @@ -208,11 +208,11 @@ class LocalStream(ActivityStream): key = "local" - def _get_audience(self, status): + def get_audience(self, status): # this stream wants no part in non-public statuses if status.privacy != "public" or not status.user.local: return [] - return super()._get_audience(status) + return super().get_audience(status) def get_statuses_for_user(self, user): # all public statuses by a local user