diff options
author | Andrew Godwin | 2022-12-11 12:37:28 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-12 11:56:49 -0700 |
commit | 20239b5cb7455d593680b17d2d80d2a4850c524d (patch) | |
tree | 1c5705837e17bca50920848d00bfcf1f7c2313af /users/views | |
parent | fc8a21fc5c6809ea115092eeec57e09e984cdd76 (diff) | |
download | takahe-20239b5cb7455d593680b17d2d80d2a4850c524d.tar.gz takahe-20239b5cb7455d593680b17d2d80d2a4850c524d.tar.bz2 takahe-20239b5cb7455d593680b17d2d80d2a4850c524d.zip |
Basic post mutation
Diffstat (limited to 'users/views')
-rw-r--r-- | users/views/identity.py | 5 |
1 files changed, 2 insertions, 3 deletions
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") |