jointakahe / takahe

An ActivityPub/Fediverse server
BSD 3-Clause "New" or "Revised" License
1.1k stars 83 forks source link

when remote follows local, hold off sending Accept if remote identity not fully fetched #676

Closed alphatownsman closed 7 months ago

alphatownsman commented 7 months ago

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:

there are rare cases FollowStates.handle_accepting get executed before IdentityStatus.handle_outdated, which will raise exception bc missing inbox_uri

This PR should fix this.

andrewgodwin commented 7 months ago

Thanks!