Authors should also see their own posts

pull/349/head
Andrew Godwin 2023-01-02 17:21:56 -07:00
rodzic 110ae452b6
commit e1363f0dac
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -152,9 +152,9 @@ class PostQuerySet(models.QuerySet):
author__inbound_follows__source=identity,
)
| models.Q(
visibility=Post.Visibilities.mentioned,
mentions=identity,
)
| models.Q(author=identity)
).distinct()
if not include_replies:
return query.filter(in_reply_to__isnull=True)