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
1 changed files with 1 additions and 1 deletions

View File

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