Remove unneeded join from Post to Identity (#301)

This commit is contained in:
Michael Manfre 2022-12-28 13:14:41 -05:00 committed by GitHub
parent e38e985e73
commit 4df4f19856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,7 @@ class PostQuerySet(models.QuerySet):
Post.Visibilities.public,
Post.Visibilities.local_only,
],
author__local=True,
local=True,
)
if not include_replies:
return query.filter(in_reply_to__isnull=True)