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"
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue