From 33b24d99bccceb0c072403b4622664b57729454d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 15 Feb 2023 10:44:02 -0700 Subject: [PATCH] Fix follow repeats on pages Fixes #510 --- users/services/identity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/services/identity.py b/users/services/identity.py index 5a4b741..4522431 100644 --- a/users/services/identity.py +++ b/users/services/identity.py @@ -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") )