summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-11 12:37:28 -0700
committerAndrew Godwin2022-12-12 11:56:49 -0700
commit20239b5cb7455d593680b17d2d80d2a4850c524d (patch)
tree1c5705837e17bca50920848d00bfcf1f7c2313af /users
parentfc8a21fc5c6809ea115092eeec57e09e984cdd76 (diff)
downloadtakahe-20239b5cb7455d593680b17d2d80d2a4850c524d.tar.gz
takahe-20239b5cb7455d593680b17d2d80d2a4850c524d.tar.bz2
takahe-20239b5cb7455d593680b17d2d80d2a4850c524d.zip
Basic post mutation
Diffstat (limited to 'users')
-rw-r--r--users/views/identity.py5
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")