Fix filter to display only the ones you are actually following (#494)

This commit is contained in:
Humberto Rocha 2023-02-04 13:53:20 -05:00 committed by GitHub
parent 51b7c0d919
commit 4eada68d9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,8 @@ class IdentityService:
def following(self) -> models.QuerySet[Identity]: def following(self) -> models.QuerySet[Identity]:
return ( return (
Identity.objects.filter(inbound_follows__source=self.identity) Identity.objects.active()
.filter(inbound_follows__source=self.identity)
.not_deleted() .not_deleted()
.order_by("username") .order_by("username")
.select_related("domain") .select_related("domain")