Fix follow repeats on pages

Fixes #510
This commit is contained in:
Andrew Godwin 2023-02-15 10:44:02 -07:00
parent e382994e73
commit 33b24d99bc
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,7 @@ class IdentityService:
inbound_follows__state__in=FollowStates.group_active(),
)
.not_deleted()
.distinct()
.order_by("username")
.select_related("domain")
)
@ -74,6 +75,7 @@ class IdentityService:
inbound_follows__state__in=FollowStates.group_active(),
)
.not_deleted()
.distinct()
.order_by("username")
.select_related("domain")
)