From 20239b5cb7455d593680b17d2d80d2a4850c524d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 11 Dec 2022 12:37:28 -0700 Subject: Basic post mutation --- users/views/identity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'users') diff --git a/users/views/identity.py b/users/views/identity.py index fba640c..b68806b 100644 --- a/users/views/identity.py +++ b/users/views/identity.py @@ -62,9 +62,8 @@ class ViewIdentity(ListView): def get_queryset(self): return ( - self.identity.posts.filter( - visibility__in=[Post.Visibilities.public, Post.Visibilities.unlisted], - ) + self.identity.posts.not_hidden() + .unlisted(include_replies=True) .select_related("author") .prefetch_related("attachments") .order_by("-created") -- cgit v1.2.3