mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-04 16:09:54 +00:00
Merge pull request #822 from mouse-reeve/activitystream-dm-bug
Fixes error sending dm
This commit is contained in:
commit
f9477fa8b2
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue