mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-05 14: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,
|
request.user,
|
||||||
)
|
)
|
||||||
.filter(user=user)
|
.filter(user=user)
|
||||||
|
.exclude(
|
||||||
|
privacy="direct",
|
||||||
|
review__isnull=True,
|
||||||
|
comment__isnull=True,
|
||||||
|
quotation__isnull=True,
|
||||||
|
)
|
||||||
.select_related(
|
.select_related(
|
||||||
"user",
|
"user",
|
||||||
"reply_parent",
|
"reply_parent",
|
||||||
|
|
Loading…
Reference in a new issue