mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-22 23:10:38 +00:00
Hide DMs from profile page
This commit is contained in:
parent
441fef9e86
commit
d0e986c283
|
@ -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