Most Lemmy instances currently use an allowlist based federation, so federation with unknown instances is denied. That is good for security, but makes it hard for instances and users to connect.
PeerTube and Mobilizon both have an instance actor (named
relayin Mobilizon). Following instances is simply done by following this actor.
The involved activities are simply