From c284a5e4091b816e52595365513d5fa69f769428 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 29 Mar 2021 13:07:22 -0700 Subject: [PATCH] Fixes error sending dm --- bookwyrm/activitystreams.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bookwyrm/activitystreams.py b/bookwyrm/activitystreams.py index caa2d83a..d811aa49 100644 --- a/bookwyrm/activitystreams.py +++ b/bookwyrm/activitystreams.py @@ -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