From d0e986c283697898403761a09212fffe69d8d41c Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 8 Jul 2022 12:19:51 -0700 Subject: [PATCH] Hide DMs from profile page --- bookwyrm/views/user.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bookwyrm/views/user.py b/bookwyrm/views/user.py index e00aaa8e4..2aed317f7 100644 --- a/bookwyrm/views/user.py +++ b/bookwyrm/views/user.py @@ -60,6 +60,12 @@ class User(View): request.user, ) .filter(user=user) + .exclude( + privacy="direct", + review__isnull=True, + comment__isnull=True, + quotation__isnull=True, + ) .select_related( "user", "reply_parent",