Remove unneeded join from Post to Identity (#301)
This commit is contained in:
parent
e38e985e73
commit
4df4f19856
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue