diff options
author | Andrew Godwin | 2022-11-17 20:04:01 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 20:04:01 -0700 |
commit | b3072c81ba73a16381366960841b6c294cc1fa6e (patch) | |
tree | 707cf2f966dd030fc2a5e866f50711ab87a40870 /users/models | |
parent | adf2449d373bcd07e2b0ce557beeb1f49d1894e4 (diff) | |
download | takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.tar.gz takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.tar.bz2 takahe-b3072c81ba73a16381366960841b6c294cc1fa6e.zip |
Follows page
Diffstat (limited to 'users/models')
-rw-r--r-- | users/models/follow.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/users/models/follow.py b/users/models/follow.py index d2ee493..e741c56 100644 --- a/users/models/follow.py +++ b/users/models/follow.py @@ -24,6 +24,10 @@ class FollowStates(StateGraph): undone.transitions_to(undone_remotely) @classmethod + def group_active(cls): + return [cls.unrequested, cls.local_requested, cls.accepted] + + @classmethod async def handle_unrequested(cls, instance: "Follow"): """ Follows that are unrequested need us to deliver the Follow object |