Authors should also see their own posts

This commit is contained in:
Andrew Godwin 2023-01-02 17:21:56 -07:00
parent 110ae452b6
commit e1363f0dac

View file

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