Fixes error sending dm
This commit is contained in:
parent
cc00a66b90
commit
c284a5e409
|
@ -128,6 +128,8 @@ class HomeStream(ActivityStream):
|
||||||
|
|
||||||
def stream_users(self, status):
|
def stream_users(self, status):
|
||||||
audience = super().stream_users(status)
|
audience = super().stream_users(status)
|
||||||
|
if not audience:
|
||||||
|
return []
|
||||||
return audience.filter(
|
return audience.filter(
|
||||||
Q(id=status.user.id) # if the user is the post's author
|
Q(id=status.user.id) # if the user is the post's author
|
||||||
| Q(following=status.user) # if the user is following the author
|
| Q(following=status.user) # if the user is following the author
|
||||||
|
|
Loading…
Reference in New Issue