mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 01:51:08 +00:00
Fixes error sending dm
This commit is contained in:
parent
cc00a66b90
commit
c284a5e409
1 changed files with 2 additions and 0 deletions
|
@ -128,6 +128,8 @@ class HomeStream(ActivityStream):
|
|||
|
||||
def stream_users(self, status):
|
||||
audience = super().stream_users(status)
|
||||
if not audience:
|
||||
return []
|
||||
return audience.filter(
|
||||
Q(id=status.user.id) # if the user is the post's author
|
||||
| Q(following=status.user) # if the user is following the author
|
||||
|
|
Loading…
Reference in a new issue