diff --git a/templates/identity/view.html b/templates/identity/view.html index 760ffd6..52520b0 100644 --- a/templates/identity/view.html +++ b/templates/identity/view.html @@ -31,7 +31,9 @@ {% endif %} {% if follow %} - + {% else %} diff --git a/users/models/follow.py b/users/models/follow.py index 1a93421..8e4aaa2 100644 --- a/users/models/follow.py +++ b/users/models/follow.py @@ -167,6 +167,12 @@ class Follow(StatorModel): "source", "source__domain", "target" ).aget(pk=self.pk) + ### Helper properties ### + + @property + def pending(self): + return self.state in [FollowStates.unrequested, FollowStates.local_requested] + ### ActivityPub (outbound) ### def to_ap(self):