1
0
Fork 0

Override get_audience instead of _get_audience in LocalStream

I suspect this will make some future work simpler.
This commit is contained in:
Wesley Aptekar-Cassels 2023-04-05 23:54:42 -04:00
parent 5272786fbb
commit 77264493eb

View file

@ -208,11 +208,11 @@ class LocalStream(ActivityStream):
key = "local" key = "local"
def _get_audience(self, status): def get_audience(self, status):
# this stream wants no part in non-public statuses # this stream wants no part in non-public statuses
if status.privacy != "public" or not status.user.local: if status.privacy != "public" or not status.user.local:
return [] return []
return super()._get_audience(status) return super().get_audience(status)
def get_statuses_for_user(self, user): def get_statuses_for_user(self, user):
# all public statuses by a local user # all public statuses by a local user