mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-21 23:01:00 +00:00
Remove unneeded join from Post to Identity (#301)
This commit is contained in:
parent
e38e985e73
commit
4df4f19856
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue