mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-27 18:40:31 +00:00
Override get_audience instead of _get_audience in LocalStream
I suspect this will make some future work simpler.
This commit is contained in:
parent
5272786fbb
commit
77264493eb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue