mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-03 13:58:43 +00:00
Hide DMs from profile page
This commit is contained in:
parent
441fef9e86
commit
d0e986c283
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue