When a new remote identity follows a local identity (manual approval = false), Follow.by_ap will create a Follow and a bare bone Identity, so these will be triggered:
IdentityStatus.handle_outdated
FollowStates.handle_unrequested
FollowStates.handle_accepting
there are rare cases FollowStates.handle_accepting get executed before IdentityStatus.handle_outdated, which will raise exception bc missing inbox_uri
When a new remote identity follows a local identity (manual approval = false),
Follow.by_ap
will create aFollow
and a bare boneIdentity
, so these will be triggered:IdentityStatus.handle_outdated
FollowStates.handle_unrequested
FollowStates.handle_accepting
there are rare cases
FollowStates.handle_accepting
get executed beforeIdentityStatus.handle_outdated
, which will raise exception bc missinginbox_uri
This PR should fix this.