Merge pull request #2203 from bookwyrm-social/dms

Improves UI around DMs
This commit is contained in:
Mouse Reeve 2022-07-08 12:30:17 -07:00 committed by GitHub
commit 0d05ff348d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -14,7 +14,7 @@
</header> </header>
<div class="box"> <div class="box">
{% include 'snippets/create_status/status.html' with type="direct" uuid=1 mention=partner no_script=True %} {% include 'snippets/create_status/status.html' with type="direct" uuid=1 mention=partner %}
</div> </div>
<section class="block"> <section class="block">

View file

@ -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",